﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using LibKetoan;
using LibDuoc;
using LibMedi;

namespace Ketoan
{
	/// <summary>
	/// Summary description for frmThongso.
	/// </summary>
	public class frmThongso : System.Windows.Forms.Form
	{
		private LibKetoan.AccessData a;
        private LibDuoc.AccessData d = new LibDuoc.AccessData();
        private LibVienphi.AccessData v = new LibVienphi.AccessData();

		private System.Windows.Forms.TabPage tabPage1;
		private System.Windows.Forms.TabPage tabPage2;
		private System.Windows.Forms.TabPage tabPage3;
		private System.Windows.Forms.TabPage tabPage4;
		private System.Windows.Forms.TabPage tabPage5;
		private System.Windows.Forms.TabPage tabPage6;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.Label label11;
		private System.Windows.Forms.Label label12;
		private System.Windows.Forms.Label label13;
		private System.Windows.Forms.DateTimePicker c100;
		private System.Windows.Forms.TextBox c101;
		private System.Windows.Forms.Label label14;
		private System.Windows.Forms.TextBox c102;
		private System.Windows.Forms.TextBox c103;
		private System.Windows.Forms.TextBox c104;
		private System.Windows.Forms.TextBox c105;
		private System.Windows.Forms.TextBox c106;
		private System.Windows.Forms.TextBox c107;
		private System.Windows.Forms.TextBox c108;
		private System.Windows.Forms.TextBox c109;
		private System.Windows.Forms.TextBox c110;
		private System.Windows.Forms.TextBox c111;
		private System.Windows.Forms.TextBox c112;
		private System.Windows.Forms.TextBox c113;
		private System.Windows.Forms.Button butLuu;
		private System.Windows.Forms.Label label15;
		private System.Windows.Forms.TextBox c200;
		private System.Windows.Forms.TextBox c201;
		private System.Windows.Forms.Label label16;
		private System.Windows.Forms.Label label17;
		private System.Windows.Forms.CheckBox c300;
		private System.Windows.Forms.TextBox c301;
		private System.Windows.Forms.Label label18;
		private System.Windows.Forms.TextBox c400;
		private System.Windows.Forms.Label label19;
		private System.Windows.Forms.TextBox c401;
		private System.Windows.Forms.Label label20;
		private System.Windows.Forms.TextBox c402;
		private System.Windows.Forms.Label label21;
		private System.Windows.Forms.TextBox c403;
		private System.Windows.Forms.Label label22;
		private System.Windows.Forms.TextBox c404;
		private System.Windows.Forms.Label label23;
		private System.Windows.Forms.Label label24;
		private System.Windows.Forms.Label label25;
		private System.Windows.Forms.TextBox c600;
		private System.Windows.Forms.Label label26;
		private System.Windows.Forms.TextBox c603;
		private System.Windows.Forms.Label label27;
		private System.Windows.Forms.TextBox c601;
		private System.Windows.Forms.Label label28;
		private System.Windows.Forms.TextBox c602;
		private System.Windows.Forms.Label label29;
		private System.Windows.Forms.TextBox c604;
		private System.Windows.Forms.Label label30;
		private System.Windows.Forms.TextBox c605;
		private System.Windows.Forms.Label label31;
		private System.Windows.Forms.TextBox c606;
		private System.Windows.Forms.Label label32;
		private System.Windows.Forms.TextBox c607;
		private System.Windows.Forms.Label label33;
		private System.Windows.Forms.Button butKetthuc;
		private System.Windows.Forms.TextBox c202;
		private System.Windows.Forms.CheckBox c203;
		private System.Windows.Forms.CheckBox c204;
		private System.Windows.Forms.CheckBox c205;
		private System.Windows.Forms.TextBox c501;
		private System.Windows.Forms.CheckBox c500;
		private System.Windows.Forms.TextBox c502;
		private string mmyy;
		private int userid;
		private System.Windows.Forms.TabControl tab;
		private System.Windows.Forms.TabPage tabPage7;
		private System.Windows.Forms.Label label34;
		private System.Windows.Forms.Label label35;
		private System.Windows.Forms.Label label36;
		private System.Windows.Forms.Label label37;
		private System.Windows.Forms.Label label45;
		private System.Windows.Forms.Label label38;
		private System.Windows.Forms.Label label50;
		private System.Windows.Forms.Label label39;
		private System.Windows.Forms.ComboBox c701;
		private System.Windows.Forms.ComboBox c700;
		private System.Windows.Forms.ComboBox c703;
		private System.Windows.Forms.ComboBox c702;
		private System.Windows.Forms.ComboBox c704;
		private System.Windows.Forms.ComboBox c705;
		private System.Windows.Forms.ComboBox c706;
		private System.Windows.Forms.ComboBox c707;
		private System.Windows.Forms.DataGrid dataGrid1;
		private CurrencyManager objStudentCM;
		private DataGridTableStyle ts;
		private DataSet ds=new DataSet();
		private DataSet dsvp=new DataSet();
		private DataTable dt=new DataTable();
		private DataTable dtvp=new DataTable();
		private DataTable dttk=new DataTable();
		private DataTable dttkvp=new DataTable();
		private System.Windows.Forms.Label label40;
		private System.Windows.Forms.TextBox c708;
		private System.Windows.Forms.Label label41;
		private System.Windows.Forms.ComboBox c709;
		private System.Windows.Forms.ComboBox c710;
		private System.Windows.Forms.Label label42;
		private System.Windows.Forms.CheckBox c711;
		private System.Windows.Forms.ComboBox c712;
		private System.Windows.Forms.Label label43;
		private System.Windows.Forms.CheckBox c206;
		private System.Windows.Forms.TabPage tabPage8;
		private System.Windows.Forms.Label label44;
		private System.Windows.Forms.Label label46;
		private System.Windows.Forms.Label label47;
		private System.Windows.Forms.Label label48;
		private System.Windows.Forms.Label label49;
		private System.Windows.Forms.Label label51;
		private System.Windows.Forms.Label label52;
		private System.Windows.Forms.Label label53;
		private System.Windows.Forms.Label label54;
		private System.Windows.Forms.Label label55;
		private System.Windows.Forms.Label label56;
		private System.Windows.Forms.ComboBox c812;
		private System.Windows.Forms.ComboBox c810;
		private System.Windows.Forms.ComboBox c809;
		private System.Windows.Forms.TextBox c808;
		private System.Windows.Forms.ComboBox c807;
		private System.Windows.Forms.ComboBox c806;
		private System.Windows.Forms.ComboBox c805;
		private System.Windows.Forms.ComboBox c803;
		private System.Windows.Forms.ComboBox c802;
		private System.Windows.Forms.ComboBox c801;
		private System.Windows.Forms.ComboBox c800;
		private System.Windows.Forms.CheckBox c811;
		private System.Windows.Forms.ComboBox c813;
		private System.Windows.Forms.TabPage tabPage9;
		private System.Windows.Forms.ComboBox c912;
		private System.Windows.Forms.Label label57;
		private System.Windows.Forms.ComboBox c910;
		private System.Windows.Forms.Label label58;
		private System.Windows.Forms.ComboBox c909;
		private System.Windows.Forms.Label label59;
		private System.Windows.Forms.TextBox c908;
		private System.Windows.Forms.Label label60;
		private System.Windows.Forms.DataGrid dataGrid2;
		private System.Windows.Forms.ComboBox c907;
		private System.Windows.Forms.Label label61;
		private System.Windows.Forms.ComboBox c906;
		private System.Windows.Forms.Label label62;
		private System.Windows.Forms.ComboBox c905;
		private System.Windows.Forms.Label label63;
		private System.Windows.Forms.ComboBox c903;
		private System.Windows.Forms.ComboBox c902;
		private System.Windows.Forms.Label label64;
		private System.Windows.Forms.Label label65;
		private System.Windows.Forms.ComboBox c901;
		private System.Windows.Forms.ComboBox c900;
		private System.Windows.Forms.Label label66;
		private System.Windows.Forms.Label label67;
		private System.Windows.Forms.Label label68;
        private System.Windows.Forms.ComboBox c904;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public frmThongso(LibKetoan.AccessData acc,string _mmyy,int _userid)
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();
			a=acc;mmyy=_mmyy;userid=_userid;
			c205.Text="Khóa số liệu tháng "+mmyy.Substring(0,2)+" năm 20"+mmyy.Substring(2);
			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmThongso));
            this.tab = new System.Windows.Forms.TabControl();
            this.tabPage1 = new System.Windows.Forms.TabPage();
            this.c113 = new System.Windows.Forms.TextBox();
            this.label14 = new System.Windows.Forms.Label();
            this.c111 = new System.Windows.Forms.TextBox();
            this.c110 = new System.Windows.Forms.TextBox();
            this.c109 = new System.Windows.Forms.TextBox();
            this.c108 = new System.Windows.Forms.TextBox();
            this.c107 = new System.Windows.Forms.TextBox();
            this.c106 = new System.Windows.Forms.TextBox();
            this.c105 = new System.Windows.Forms.TextBox();
            this.c104 = new System.Windows.Forms.TextBox();
            this.c103 = new System.Windows.Forms.TextBox();
            this.c102 = new System.Windows.Forms.TextBox();
            this.c101 = new System.Windows.Forms.TextBox();
            this.c100 = new System.Windows.Forms.DateTimePicker();
            this.label13 = new System.Windows.Forms.Label();
            this.label12 = new System.Windows.Forms.Label();
            this.label11 = new System.Windows.Forms.Label();
            this.label10 = new System.Windows.Forms.Label();
            this.label9 = new System.Windows.Forms.Label();
            this.label8 = new System.Windows.Forms.Label();
            this.label7 = new System.Windows.Forms.Label();
            this.label6 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.label1 = new System.Windows.Forms.Label();
            this.c112 = new System.Windows.Forms.TextBox();
            this.tabPage2 = new System.Windows.Forms.TabPage();
            this.c206 = new System.Windows.Forms.CheckBox();
            this.c205 = new System.Windows.Forms.CheckBox();
            this.c204 = new System.Windows.Forms.CheckBox();
            this.c203 = new System.Windows.Forms.CheckBox();
            this.c202 = new System.Windows.Forms.TextBox();
            this.label17 = new System.Windows.Forms.Label();
            this.c201 = new System.Windows.Forms.TextBox();
            this.label16 = new System.Windows.Forms.Label();
            this.c200 = new System.Windows.Forms.TextBox();
            this.label15 = new System.Windows.Forms.Label();
            this.tabPage6 = new System.Windows.Forms.TabPage();
            this.c607 = new System.Windows.Forms.TextBox();
            this.label33 = new System.Windows.Forms.Label();
            this.c606 = new System.Windows.Forms.TextBox();
            this.label32 = new System.Windows.Forms.Label();
            this.c605 = new System.Windows.Forms.TextBox();
            this.label31 = new System.Windows.Forms.Label();
            this.c604 = new System.Windows.Forms.TextBox();
            this.label30 = new System.Windows.Forms.Label();
            this.c602 = new System.Windows.Forms.TextBox();
            this.label29 = new System.Windows.Forms.Label();
            this.c601 = new System.Windows.Forms.TextBox();
            this.label28 = new System.Windows.Forms.Label();
            this.c603 = new System.Windows.Forms.TextBox();
            this.label27 = new System.Windows.Forms.Label();
            this.c600 = new System.Windows.Forms.TextBox();
            this.label26 = new System.Windows.Forms.Label();
            this.tabPage7 = new System.Windows.Forms.TabPage();
            this.c712 = new System.Windows.Forms.ComboBox();
            this.label43 = new System.Windows.Forms.Label();
            this.c711 = new System.Windows.Forms.CheckBox();
            this.c710 = new System.Windows.Forms.ComboBox();
            this.label42 = new System.Windows.Forms.Label();
            this.c709 = new System.Windows.Forms.ComboBox();
            this.label41 = new System.Windows.Forms.Label();
            this.c708 = new System.Windows.Forms.TextBox();
            this.label40 = new System.Windows.Forms.Label();
            this.dataGrid1 = new System.Windows.Forms.DataGrid();
            this.c707 = new System.Windows.Forms.ComboBox();
            this.label39 = new System.Windows.Forms.Label();
            this.c706 = new System.Windows.Forms.ComboBox();
            this.label50 = new System.Windows.Forms.Label();
            this.c705 = new System.Windows.Forms.ComboBox();
            this.label38 = new System.Windows.Forms.Label();
            this.c703 = new System.Windows.Forms.ComboBox();
            this.c702 = new System.Windows.Forms.ComboBox();
            this.label36 = new System.Windows.Forms.Label();
            this.label37 = new System.Windows.Forms.Label();
            this.c701 = new System.Windows.Forms.ComboBox();
            this.c700 = new System.Windows.Forms.ComboBox();
            this.label34 = new System.Windows.Forms.Label();
            this.label35 = new System.Windows.Forms.Label();
            this.tabPage8 = new System.Windows.Forms.TabPage();
            this.c813 = new System.Windows.Forms.ComboBox();
            this.c811 = new System.Windows.Forms.CheckBox();
            this.c812 = new System.Windows.Forms.ComboBox();
            this.label44 = new System.Windows.Forms.Label();
            this.c810 = new System.Windows.Forms.ComboBox();
            this.label46 = new System.Windows.Forms.Label();
            this.c809 = new System.Windows.Forms.ComboBox();
            this.label47 = new System.Windows.Forms.Label();
            this.c808 = new System.Windows.Forms.TextBox();
            this.label48 = new System.Windows.Forms.Label();
            this.c807 = new System.Windows.Forms.ComboBox();
            this.label49 = new System.Windows.Forms.Label();
            this.c806 = new System.Windows.Forms.ComboBox();
            this.label51 = new System.Windows.Forms.Label();
            this.c805 = new System.Windows.Forms.ComboBox();
            this.label52 = new System.Windows.Forms.Label();
            this.c803 = new System.Windows.Forms.ComboBox();
            this.c802 = new System.Windows.Forms.ComboBox();
            this.label53 = new System.Windows.Forms.Label();
            this.label54 = new System.Windows.Forms.Label();
            this.c801 = new System.Windows.Forms.ComboBox();
            this.c800 = new System.Windows.Forms.ComboBox();
            this.label55 = new System.Windows.Forms.Label();
            this.label56 = new System.Windows.Forms.Label();
            this.tabPage9 = new System.Windows.Forms.TabPage();
            this.label68 = new System.Windows.Forms.Label();
            this.c904 = new System.Windows.Forms.ComboBox();
            this.c912 = new System.Windows.Forms.ComboBox();
            this.label57 = new System.Windows.Forms.Label();
            this.c910 = new System.Windows.Forms.ComboBox();
            this.label58 = new System.Windows.Forms.Label();
            this.c909 = new System.Windows.Forms.ComboBox();
            this.label59 = new System.Windows.Forms.Label();
            this.c908 = new System.Windows.Forms.TextBox();
            this.label60 = new System.Windows.Forms.Label();
            this.dataGrid2 = new System.Windows.Forms.DataGrid();
            this.c907 = new System.Windows.Forms.ComboBox();
            this.label61 = new System.Windows.Forms.Label();
            this.c906 = new System.Windows.Forms.ComboBox();
            this.label62 = new System.Windows.Forms.Label();
            this.c905 = new System.Windows.Forms.ComboBox();
            this.label63 = new System.Windows.Forms.Label();
            this.c903 = new System.Windows.Forms.ComboBox();
            this.c902 = new System.Windows.Forms.ComboBox();
            this.label64 = new System.Windows.Forms.Label();
            this.label65 = new System.Windows.Forms.Label();
            this.c901 = new System.Windows.Forms.ComboBox();
            this.c900 = new System.Windows.Forms.ComboBox();
            this.label66 = new System.Windows.Forms.Label();
            this.label67 = new System.Windows.Forms.Label();
            this.c704 = new System.Windows.Forms.ComboBox();
            this.label45 = new System.Windows.Forms.Label();
            this.tabPage3 = new System.Windows.Forms.TabPage();
            this.c301 = new System.Windows.Forms.TextBox();
            this.label18 = new System.Windows.Forms.Label();
            this.c300 = new System.Windows.Forms.CheckBox();
            this.tabPage4 = new System.Windows.Forms.TabPage();
            this.c404 = new System.Windows.Forms.TextBox();
            this.label23 = new System.Windows.Forms.Label();
            this.c403 = new System.Windows.Forms.TextBox();
            this.label22 = new System.Windows.Forms.Label();
            this.c402 = new System.Windows.Forms.TextBox();
            this.label21 = new System.Windows.Forms.Label();
            this.c401 = new System.Windows.Forms.TextBox();
            this.label20 = new System.Windows.Forms.Label();
            this.c400 = new System.Windows.Forms.TextBox();
            this.label19 = new System.Windows.Forms.Label();
            this.tabPage5 = new System.Windows.Forms.TabPage();
            this.c502 = new System.Windows.Forms.TextBox();
            this.label25 = new System.Windows.Forms.Label();
            this.c501 = new System.Windows.Forms.TextBox();
            this.label24 = new System.Windows.Forms.Label();
            this.c500 = new System.Windows.Forms.CheckBox();
            this.butLuu = new System.Windows.Forms.Button();
            this.butKetthuc = new System.Windows.Forms.Button();
            this.tab.SuspendLayout();
            this.tabPage1.SuspendLayout();
            this.tabPage2.SuspendLayout();
            this.tabPage6.SuspendLayout();
            this.tabPage7.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
            this.tabPage8.SuspendLayout();
            this.tabPage9.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dataGrid2)).BeginInit();
            this.tabPage3.SuspendLayout();
            this.tabPage4.SuspendLayout();
            this.tabPage5.SuspendLayout();
            this.SuspendLayout();
            // 
            // tab
            // 
            this.tab.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.tab.Controls.Add(this.tabPage1);
            this.tab.Controls.Add(this.tabPage2);
            this.tab.Controls.Add(this.tabPage6);
            this.tab.Controls.Add(this.tabPage7);
            this.tab.Controls.Add(this.tabPage8);
            this.tab.Controls.Add(this.tabPage9);
            this.tab.Location = new System.Drawing.Point(0, 0);
            this.tab.Name = "tab";
            this.tab.SelectedIndex = 0;
            this.tab.Size = new System.Drawing.Size(791, 329);
            this.tab.TabIndex = 0;
            // 
            // tabPage1
            // 
            this.tabPage1.Controls.Add(this.c113);
            this.tabPage1.Controls.Add(this.label14);
            this.tabPage1.Controls.Add(this.c111);
            this.tabPage1.Controls.Add(this.c110);
            this.tabPage1.Controls.Add(this.c109);
            this.tabPage1.Controls.Add(this.c108);
            this.tabPage1.Controls.Add(this.c107);
            this.tabPage1.Controls.Add(this.c106);
            this.tabPage1.Controls.Add(this.c105);
            this.tabPage1.Controls.Add(this.c104);
            this.tabPage1.Controls.Add(this.c103);
            this.tabPage1.Controls.Add(this.c102);
            this.tabPage1.Controls.Add(this.c101);
            this.tabPage1.Controls.Add(this.c100);
            this.tabPage1.Controls.Add(this.label13);
            this.tabPage1.Controls.Add(this.label12);
            this.tabPage1.Controls.Add(this.label11);
            this.tabPage1.Controls.Add(this.label10);
            this.tabPage1.Controls.Add(this.label9);
            this.tabPage1.Controls.Add(this.label8);
            this.tabPage1.Controls.Add(this.label7);
            this.tabPage1.Controls.Add(this.label6);
            this.tabPage1.Controls.Add(this.label5);
            this.tabPage1.Controls.Add(this.label4);
            this.tabPage1.Controls.Add(this.label3);
            this.tabPage1.Controls.Add(this.label2);
            this.tabPage1.Controls.Add(this.label1);
            this.tabPage1.Controls.Add(this.c112);
            this.tabPage1.Location = new System.Drawing.Point(4, 22);
            this.tabPage1.Name = "tabPage1";
            this.tabPage1.Size = new System.Drawing.Size(783, 303);
            this.tabPage1.TabIndex = 0;
            this.tabPage1.Text = "Đơn vị";
            // 
            // c113
            // 
            this.c113.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c113.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c113.Location = new System.Drawing.Point(96, 211);
            this.c113.Name = "c113";
            this.c113.Size = new System.Drawing.Size(679, 21);
            this.c113.TabIndex = 13;
            // 
            // label14
            // 
            this.label14.Location = new System.Drawing.Point(-16, 216);
            this.label14.Name = "label14";
            this.label14.Size = new System.Drawing.Size(112, 16);
            this.label14.TabIndex = 25;
            this.label14.Text = "Mã đơn vị QHNS :";
            this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c111
            // 
            this.c111.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c111.Location = new System.Drawing.Point(96, 188);
            this.c111.Name = "c111";
            this.c111.Size = new System.Drawing.Size(160, 21);
            this.c111.TabIndex = 11;
            // 
            // c110
            // 
            this.c110.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c110.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c110.Location = new System.Drawing.Point(312, 164);
            this.c110.Name = "c110";
            this.c110.Size = new System.Drawing.Size(463, 21);
            this.c110.TabIndex = 10;
            // 
            // c109
            // 
            this.c109.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c109.Location = new System.Drawing.Point(96, 164);
            this.c109.Name = "c109";
            this.c109.Size = new System.Drawing.Size(160, 21);
            this.c109.TabIndex = 9;
            // 
            // c108
            // 
            this.c108.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c108.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c108.Location = new System.Drawing.Point(312, 141);
            this.c108.Name = "c108";
            this.c108.Size = new System.Drawing.Size(463, 21);
            this.c108.TabIndex = 8;
            // 
            // c107
            // 
            this.c107.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c107.Location = new System.Drawing.Point(96, 141);
            this.c107.Name = "c107";
            this.c107.Size = new System.Drawing.Size(160, 21);
            this.c107.TabIndex = 7;
            // 
            // c106
            // 
            this.c106.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c106.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c106.Location = new System.Drawing.Point(96, 118);
            this.c106.Name = "c106";
            this.c106.Size = new System.Drawing.Size(679, 21);
            this.c106.TabIndex = 6;
            // 
            // c105
            // 
            this.c105.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c105.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c105.Location = new System.Drawing.Point(96, 96);
            this.c105.Name = "c105";
            this.c105.Size = new System.Drawing.Size(679, 21);
            this.c105.TabIndex = 5;
            // 
            // c104
            // 
            this.c104.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c104.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c104.Location = new System.Drawing.Point(96, 74);
            this.c104.Name = "c104";
            this.c104.Size = new System.Drawing.Size(679, 21);
            this.c104.TabIndex = 4;
            // 
            // c103
            // 
            this.c103.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c103.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c103.Location = new System.Drawing.Point(96, 51);
            this.c103.Name = "c103";
            this.c103.Size = new System.Drawing.Size(679, 21);
            this.c103.TabIndex = 3;
            // 
            // c102
            // 
            this.c102.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c102.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c102.Location = new System.Drawing.Point(96, 28);
            this.c102.Name = "c102";
            this.c102.Size = new System.Drawing.Size(679, 21);
            this.c102.TabIndex = 2;
            // 
            // c101
            // 
            this.c101.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c101.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c101.Location = new System.Drawing.Point(312, 5);
            this.c101.Name = "c101";
            this.c101.Size = new System.Drawing.Size(463, 21);
            this.c101.TabIndex = 1;
            // 
            // c100
            // 
            this.c100.CustomFormat = "dd/MM/yyyy";
            this.c100.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c100.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
            this.c100.Location = new System.Drawing.Point(96, 5);
            this.c100.Name = "c100";
            this.c100.Size = new System.Drawing.Size(80, 21);
            this.c100.TabIndex = 0;
            // 
            // label13
            // 
            this.label13.Location = new System.Drawing.Point(232, 190);
            this.label13.Name = "label13";
            this.label13.Size = new System.Drawing.Size(80, 16);
            this.label13.TabIndex = 12;
            this.label13.Text = "Tài khoản :";
            this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label12
            // 
            this.label12.Location = new System.Drawing.Point(-16, 190);
            this.label12.Name = "label12";
            this.label12.Size = new System.Drawing.Size(112, 16);
            this.label12.TabIndex = 11;
            this.label12.Text = "Mã số thuế :";
            this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label11
            // 
            this.label11.Location = new System.Drawing.Point(232, 167);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(80, 16);
            this.label11.TabIndex = 10;
            this.label11.Text = "Web :";
            this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label10
            // 
            this.label10.Location = new System.Drawing.Point(-16, 166);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(112, 16);
            this.label10.TabIndex = 9;
            this.label10.Text = "Email :";
            this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label9
            // 
            this.label9.Location = new System.Drawing.Point(232, 145);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(80, 16);
            this.label9.TabIndex = 8;
            this.label9.Text = "Fax :";
            this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label8
            // 
            this.label8.Location = new System.Drawing.Point(-16, 145);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(112, 16);
            this.label8.TabIndex = 7;
            this.label8.Text = "Điện thoại :";
            this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label7
            // 
            this.label7.Location = new System.Drawing.Point(-16, 121);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(112, 16);
            this.label7.TabIndex = 6;
            this.label7.Text = "Tỉnh/thành phố :";
            this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label6
            // 
            this.label6.Location = new System.Drawing.Point(-16, 98);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(112, 16);
            this.label6.TabIndex = 5;
            this.label6.Text = "Phường xã :";
            this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label5
            // 
            this.label5.Location = new System.Drawing.Point(-16, 76);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(112, 16);
            this.label5.TabIndex = 4;
            this.label5.Text = "Địa chỉ :";
            this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label4
            // 
            this.label4.Location = new System.Drawing.Point(-16, 55);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(112, 16);
            this.label4.TabIndex = 3;
            this.label4.Text = "Cơ quan chủ quản :";
            this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label3
            // 
            this.label3.Location = new System.Drawing.Point(-4, 32);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(100, 16);
            this.label3.TabIndex = 2;
            this.label3.Text = "Đơn vị :";
            this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label2
            // 
            this.label2.Location = new System.Drawing.Point(232, 8);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(80, 16);
            this.label2.TabIndex = 1;
            this.label2.Text = "Mã đơn vị :";
            this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label1
            // 
            this.label1.Location = new System.Drawing.Point(-4, 8);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(100, 16);
            this.label1.TabIndex = 0;
            this.label1.Text = "Ngày bắt đầu :";
            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c112
            // 
            this.c112.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c112.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c112.Location = new System.Drawing.Point(312, 188);
            this.c112.Name = "c112";
            this.c112.Size = new System.Drawing.Size(463, 21);
            this.c112.TabIndex = 12;
            // 
            // tabPage2
            // 
            this.tabPage2.Controls.Add(this.c206);
            this.tabPage2.Controls.Add(this.c205);
            this.tabPage2.Controls.Add(this.c204);
            this.tabPage2.Controls.Add(this.c203);
            this.tabPage2.Controls.Add(this.c202);
            this.tabPage2.Controls.Add(this.label17);
            this.tabPage2.Controls.Add(this.c201);
            this.tabPage2.Controls.Add(this.label16);
            this.tabPage2.Controls.Add(this.c200);
            this.tabPage2.Controls.Add(this.label15);
            this.tabPage2.Location = new System.Drawing.Point(4, 22);
            this.tabPage2.Name = "tabPage2";
            this.tabPage2.Size = new System.Drawing.Size(783, 303);
            this.tabPage2.TabIndex = 1;
            this.tabPage2.Text = "Kế toán";
            // 
            // c206
            // 
            this.c206.Location = new System.Drawing.Point(184, 112);
            this.c206.Name = "c206";
            this.c206.Size = new System.Drawing.Size(80, 16);
            this.c206.TabIndex = 6;
            this.c206.Text = "Theo năm";
            // 
            // c205
            // 
            this.c205.Location = new System.Drawing.Point(184, 128);
            this.c205.Name = "c205";
            this.c205.Size = new System.Drawing.Size(208, 16);
            this.c205.TabIndex = 5;
            this.c205.Text = "Khóa số liệu";
            // 
            // c204
            // 
            this.c204.Location = new System.Drawing.Point(184, 96);
            this.c204.Name = "c204";
            this.c204.Size = new System.Drawing.Size(160, 16);
            this.c204.TabIndex = 4;
            this.c204.Text = "Số chứng từ tăng tự động";
            this.c204.CheckedChanged += new System.EventHandler(this.c204_CheckedChanged);
            // 
            // c203
            // 
            this.c203.Location = new System.Drawing.Point(184, 80);
            this.c203.Name = "c203";
            this.c203.Size = new System.Drawing.Size(208, 16);
            this.c203.TabIndex = 3;
            this.c203.Text = "Không nhập bảng kê chứng từ";
            this.c203.Visible = false;
            // 
            // c202
            // 
            this.c202.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c202.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c202.Location = new System.Drawing.Point(182, 51);
            this.c202.Name = "c202";
            this.c202.Size = new System.Drawing.Size(593, 21);
            this.c202.TabIndex = 2;
            // 
            // label17
            // 
            this.label17.Location = new System.Drawing.Point(-2, 56);
            this.label17.Name = "label17";
            this.label17.Size = new System.Drawing.Size(184, 16);
            this.label17.TabIndex = 5;
            this.label17.Text = "Tài khoản có đầu ra thuế GTGT :";
            this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c201
            // 
            this.c201.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c201.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c201.Location = new System.Drawing.Point(182, 28);
            this.c201.Name = "c201";
            this.c201.Size = new System.Drawing.Size(593, 21);
            this.c201.TabIndex = 1;
            // 
            // label16
            // 
            this.label16.Location = new System.Drawing.Point(-2, 32);
            this.label16.Name = "label16";
            this.label16.Size = new System.Drawing.Size(184, 16);
            this.label16.TabIndex = 3;
            this.label16.Text = "Tài khoản nợ đầu vào  thuế GTGT :";
            this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c200
            // 
            this.c200.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c200.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c200.Location = new System.Drawing.Point(182, 5);
            this.c200.Name = "c200";
            this.c200.Size = new System.Drawing.Size(593, 21);
            this.c200.TabIndex = 0;
            // 
            // label15
            // 
            this.label15.Location = new System.Drawing.Point(-2, 8);
            this.label15.Name = "label15";
            this.label15.Size = new System.Drawing.Size(184, 16);
            this.label15.TabIndex = 1;
            this.label15.Text = "Tài khoản chờ phân bổ :";
            this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // tabPage6
            // 
            this.tabPage6.Controls.Add(this.c607);
            this.tabPage6.Controls.Add(this.label33);
            this.tabPage6.Controls.Add(this.c606);
            this.tabPage6.Controls.Add(this.label32);
            this.tabPage6.Controls.Add(this.c605);
            this.tabPage6.Controls.Add(this.label31);
            this.tabPage6.Controls.Add(this.c604);
            this.tabPage6.Controls.Add(this.label30);
            this.tabPage6.Controls.Add(this.c602);
            this.tabPage6.Controls.Add(this.label29);
            this.tabPage6.Controls.Add(this.c601);
            this.tabPage6.Controls.Add(this.label28);
            this.tabPage6.Controls.Add(this.c603);
            this.tabPage6.Controls.Add(this.label27);
            this.tabPage6.Controls.Add(this.c600);
            this.tabPage6.Controls.Add(this.label26);
            this.tabPage6.Location = new System.Drawing.Point(4, 22);
            this.tabPage6.Name = "tabPage6";
            this.tabPage6.Size = new System.Drawing.Size(783, 303);
            this.tabPage6.TabIndex = 5;
            this.tabPage6.Text = "Khác";
            // 
            // c607
            // 
            this.c607.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c607.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c607.Location = new System.Drawing.Point(112, 160);
            this.c607.Name = "c607";
            this.c607.Size = new System.Drawing.Size(655, 21);
            this.c607.TabIndex = 7;
            // 
            // label33
            // 
            this.label33.Location = new System.Drawing.Point(-16, 163);
            this.label33.Name = "label33";
            this.label33.Size = new System.Drawing.Size(128, 16);
            this.label33.TabIndex = 28;
            this.label33.Text = "Thủ quỹ :";
            this.label33.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c606
            // 
            this.c606.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c606.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c606.Location = new System.Drawing.Point(112, 137);
            this.c606.Name = "c606";
            this.c606.Size = new System.Drawing.Size(655, 21);
            this.c606.TabIndex = 6;
            // 
            // label32
            // 
            this.label32.Location = new System.Drawing.Point(-16, 140);
            this.label32.Name = "label32";
            this.label32.Size = new System.Drawing.Size(128, 16);
            this.label32.TabIndex = 26;
            this.label32.Text = "Kế toán tổng hợp :";
            this.label32.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c605
            // 
            this.c605.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c605.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c605.Location = new System.Drawing.Point(112, 115);
            this.c605.Name = "c605";
            this.c605.Size = new System.Drawing.Size(655, 21);
            this.c605.TabIndex = 5;
            // 
            // label31
            // 
            this.label31.Location = new System.Drawing.Point(-16, 118);
            this.label31.Name = "label31";
            this.label31.Size = new System.Drawing.Size(128, 16);
            this.label31.TabIndex = 24;
            this.label31.Text = "Kế toán hàng hóa :";
            this.label31.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c604
            // 
            this.c604.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c604.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c604.Location = new System.Drawing.Point(112, 93);
            this.c604.Name = "c604";
            this.c604.Size = new System.Drawing.Size(655, 21);
            this.c604.TabIndex = 4;
            // 
            // label30
            // 
            this.label30.Location = new System.Drawing.Point(-16, 95);
            this.label30.Name = "label30";
            this.label30.Size = new System.Drawing.Size(128, 16);
            this.label30.TabIndex = 22;
            this.label30.Text = "Kế toán vật tư :";
            this.label30.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c602
            // 
            this.c602.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c602.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c602.Location = new System.Drawing.Point(112, 49);
            this.c602.Name = "c602";
            this.c602.Size = new System.Drawing.Size(655, 21);
            this.c602.TabIndex = 2;
            // 
            // label29
            // 
            this.label29.Location = new System.Drawing.Point(-16, 51);
            this.label29.Name = "label29";
            this.label29.Size = new System.Drawing.Size(128, 16);
            this.label29.TabIndex = 20;
            this.label29.Text = "Kế toán tiền mặt :";
            this.label29.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c601
            // 
            this.c601.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c601.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c601.Location = new System.Drawing.Point(112, 27);
            this.c601.Name = "c601";
            this.c601.Size = new System.Drawing.Size(655, 21);
            this.c601.TabIndex = 1;
            // 
            // label28
            // 
            this.label28.Location = new System.Drawing.Point(-16, 30);
            this.label28.Name = "label28";
            this.label28.Size = new System.Drawing.Size(128, 16);
            this.label28.TabIndex = 18;
            this.label28.Text = "Kế toán trưởng :";
            this.label28.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c603
            // 
            this.c603.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c603.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c603.Location = new System.Drawing.Point(112, 71);
            this.c603.Name = "c603";
            this.c603.Size = new System.Drawing.Size(655, 21);
            this.c603.TabIndex = 3;
            // 
            // label27
            // 
            this.label27.Location = new System.Drawing.Point(-16, 74);
            this.label27.Name = "label27";
            this.label27.Size = new System.Drawing.Size(128, 16);
            this.label27.TabIndex = 16;
            this.label27.Text = "Kế toán ngân hàng :";
            this.label27.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c600
            // 
            this.c600.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c600.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c600.Location = new System.Drawing.Point(112, 5);
            this.c600.Name = "c600";
            this.c600.Size = new System.Drawing.Size(655, 21);
            this.c600.TabIndex = 0;
            // 
            // label26
            // 
            this.label26.Location = new System.Drawing.Point(-16, 8);
            this.label26.Name = "label26";
            this.label26.Size = new System.Drawing.Size(128, 16);
            this.label26.TabIndex = 14;
            this.label26.Text = "Giám đốc :";
            this.label26.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // tabPage7
            // 
            this.tabPage7.Controls.Add(this.c712);
            this.tabPage7.Controls.Add(this.label43);
            this.tabPage7.Controls.Add(this.c711);
            this.tabPage7.Controls.Add(this.c710);
            this.tabPage7.Controls.Add(this.label42);
            this.tabPage7.Controls.Add(this.c709);
            this.tabPage7.Controls.Add(this.label41);
            this.tabPage7.Controls.Add(this.c708);
            this.tabPage7.Controls.Add(this.label40);
            this.tabPage7.Controls.Add(this.dataGrid1);
            this.tabPage7.Controls.Add(this.c707);
            this.tabPage7.Controls.Add(this.label39);
            this.tabPage7.Controls.Add(this.c706);
            this.tabPage7.Controls.Add(this.label50);
            this.tabPage7.Controls.Add(this.c705);
            this.tabPage7.Controls.Add(this.label38);
            this.tabPage7.Controls.Add(this.c703);
            this.tabPage7.Controls.Add(this.c702);
            this.tabPage7.Controls.Add(this.label36);
            this.tabPage7.Controls.Add(this.label37);
            this.tabPage7.Controls.Add(this.c701);
            this.tabPage7.Controls.Add(this.c700);
            this.tabPage7.Controls.Add(this.label34);
            this.tabPage7.Controls.Add(this.label35);
            this.tabPage7.Location = new System.Drawing.Point(4, 22);
            this.tabPage7.Name = "tabPage7";
            this.tabPage7.Size = new System.Drawing.Size(783, 303);
            this.tabPage7.TabIndex = 6;
            this.tabPage7.Text = "Chuyển số liệu phiếu nhập";
            // 
            // c712
            // 
            this.c712.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c712.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c712.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c712.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c712.Location = new System.Drawing.Point(80, 238);
            this.c712.Name = "c712";
            this.c712.Size = new System.Drawing.Size(311, 21);
            this.c712.TabIndex = 116;
            // 
            // label43
            // 
            this.label43.Location = new System.Drawing.Point(-8, 238);
            this.label43.Name = "label43";
            this.label43.Size = new System.Drawing.Size(88, 23);
            this.label43.TabIndex = 117;
            this.label43.Text = "Tk chịu thuế :";
            this.label43.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c711
            // 
            this.c711.Location = new System.Drawing.Point(80, 265);
            this.c711.Name = "c711";
            this.c711.Size = new System.Drawing.Size(168, 16);
            this.c711.TabIndex = 115;
            this.c711.Text = "Phân biệt kinh phí hàng năm";
            // 
            // c710
            // 
            this.c710.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c710.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c710.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c710.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c710.Location = new System.Drawing.Point(80, 8);
            this.c710.Name = "c710";
            this.c710.Size = new System.Drawing.Size(311, 21);
            this.c710.TabIndex = 0;
            // 
            // label42
            // 
            this.label42.Location = new System.Drawing.Point(16, 8);
            this.label42.Name = "label42";
            this.label42.Size = new System.Drawing.Size(64, 23);
            this.label42.TabIndex = 114;
            this.label42.Text = "Nhóm :";
            this.label42.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c709
            // 
            this.c709.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c709.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c709.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c709.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c709.Location = new System.Drawing.Point(80, 214);
            this.c709.Name = "c709";
            this.c709.Size = new System.Drawing.Size(311, 21);
            this.c709.TabIndex = 9;
            // 
            // label41
            // 
            this.label41.Location = new System.Drawing.Point(-8, 213);
            this.label41.Name = "label41";
            this.label41.Size = new System.Drawing.Size(88, 23);
            this.label41.TabIndex = 112;
            this.label41.Text = "Người dùng :";
            this.label41.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c708
            // 
            this.c708.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c708.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c708.Location = new System.Drawing.Point(80, 191);
            this.c708.Name = "c708";
            this.c708.Size = new System.Drawing.Size(311, 21);
            this.c708.TabIndex = 8;
            // 
            // label40
            // 
            this.label40.Location = new System.Drawing.Point(0, 191);
            this.label40.Name = "label40";
            this.label40.Size = new System.Drawing.Size(80, 23);
            this.label40.TabIndex = 111;
            this.label40.Text = "Nội dung :";
            this.label40.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // dataGrid1
            // 
            this.dataGrid1.AlternatingBackColor = System.Drawing.Color.Lavender;
            this.dataGrid1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.dataGrid1.BackColor = System.Drawing.Color.WhiteSmoke;
            this.dataGrid1.BackgroundColor = System.Drawing.SystemColors.Control;
            this.dataGrid1.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.dataGrid1.CaptionBackColor = System.Drawing.SystemColors.Control;
            this.dataGrid1.CaptionFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.dataGrid1.CaptionForeColor = System.Drawing.Color.MidnightBlue;
            this.dataGrid1.DataMember = "";
            this.dataGrid1.FlatMode = true;
            this.dataGrid1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.dataGrid1.ForeColor = System.Drawing.Color.MidnightBlue;
            this.dataGrid1.GridLineColor = System.Drawing.Color.Gainsboro;
            this.dataGrid1.GridLineStyle = System.Windows.Forms.DataGridLineStyle.None;
            this.dataGrid1.HeaderFont = new System.Drawing.Font("Tahoma", 8F, System.Drawing.FontStyle.Bold);
            this.dataGrid1.HeaderForeColor = System.Drawing.Color.WhiteSmoke;
            this.dataGrid1.LinkColor = System.Drawing.Color.Teal;
            this.dataGrid1.Location = new System.Drawing.Point(399, -16);
            this.dataGrid1.Name = "dataGrid1";
            this.dataGrid1.ParentRowsBackColor = System.Drawing.Color.Gainsboro;
            this.dataGrid1.ParentRowsForeColor = System.Drawing.Color.MidnightBlue;
            this.dataGrid1.ReadOnly = true;
            this.dataGrid1.RowHeaderWidth = 10;
            this.dataGrid1.SelectionBackColor = System.Drawing.Color.CadetBlue;
            this.dataGrid1.SelectionForeColor = System.Drawing.Color.WhiteSmoke;
            this.dataGrid1.Size = new System.Drawing.Size(376, 313);
            this.dataGrid1.TabIndex = 110;
            // 
            // c707
            // 
            this.c707.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c707.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c707.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c707.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c707.Location = new System.Drawing.Point(80, 168);
            this.c707.Name = "c707";
            this.c707.Size = new System.Drawing.Size(311, 21);
            this.c707.TabIndex = 7;
            // 
            // label39
            // 
            this.label39.Location = new System.Drawing.Point(0, 168);
            this.label39.Name = "label39";
            this.label39.Size = new System.Drawing.Size(80, 23);
            this.label39.TabIndex = 71;
            this.label39.Text = "Cấp phát :";
            this.label39.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c706
            // 
            this.c706.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c706.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c706.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c706.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c706.Location = new System.Drawing.Point(80, 146);
            this.c706.Name = "c706";
            this.c706.Size = new System.Drawing.Size(311, 21);
            this.c706.TabIndex = 6;
            // 
            // label50
            // 
            this.label50.Location = new System.Drawing.Point(8, 144);
            this.label50.Name = "label50";
            this.label50.Size = new System.Drawing.Size(72, 23);
            this.label50.TabIndex = 51;
            this.label50.Text = "Loại khoản :";
            this.label50.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c705
            // 
            this.c705.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c705.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c705.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c705.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c705.Location = new System.Drawing.Point(80, 123);
            this.c705.Name = "c705";
            this.c705.Size = new System.Drawing.Size(311, 21);
            this.c705.TabIndex = 5;
            // 
            // label38
            // 
            this.label38.Location = new System.Drawing.Point(0, 120);
            this.label38.Name = "label38";
            this.label38.Size = new System.Drawing.Size(80, 23);
            this.label38.TabIndex = 38;
            this.label38.Text = "Loại bảng kê :";
            this.label38.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c703
            // 
            this.c703.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c703.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c703.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c703.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c703.Location = new System.Drawing.Point(80, 100);
            this.c703.Name = "c703";
            this.c703.Size = new System.Drawing.Size(311, 21);
            this.c703.TabIndex = 4;
            // 
            // c702
            // 
            this.c702.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c702.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c702.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c702.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c702.Location = new System.Drawing.Point(80, 77);
            this.c702.Name = "c702";
            this.c702.Size = new System.Drawing.Size(311, 21);
            this.c702.TabIndex = 3;
            // 
            // label36
            // 
            this.label36.Location = new System.Drawing.Point(16, 100);
            this.label36.Name = "label36";
            this.label36.Size = new System.Drawing.Size(64, 23);
            this.label36.TabIndex = 19;
            this.label36.Text = "Nghiệp vụ :";
            this.label36.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label37
            // 
            this.label37.Location = new System.Drawing.Point(24, 77);
            this.label37.Name = "label37";
            this.label37.Size = new System.Drawing.Size(56, 23);
            this.label37.TabIndex = 17;
            this.label37.Text = "Chương :";
            this.label37.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c701
            // 
            this.c701.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c701.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c701.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c701.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c701.Location = new System.Drawing.Point(80, 54);
            this.c701.Name = "c701";
            this.c701.Size = new System.Drawing.Size(311, 21);
            this.c701.TabIndex = 2;
            // 
            // c700
            // 
            this.c700.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c700.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c700.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c700.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c700.Location = new System.Drawing.Point(80, 31);
            this.c700.Name = "c700";
            this.c700.Size = new System.Drawing.Size(311, 21);
            this.c700.TabIndex = 1;
            // 
            // label34
            // 
            this.label34.Location = new System.Drawing.Point(32, 54);
            this.label34.Name = "label34";
            this.label34.Size = new System.Drawing.Size(48, 23);
            this.label34.TabIndex = 6;
            this.label34.Text = "Loại :";
            this.label34.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label35
            // 
            this.label35.Location = new System.Drawing.Point(16, 31);
            this.label35.Name = "label35";
            this.label35.Size = new System.Drawing.Size(64, 23);
            this.label35.TabIndex = 4;
            this.label35.Text = "Hoạt động :";
            this.label35.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // tabPage8
            // 
            this.tabPage8.Controls.Add(this.c813);
            this.tabPage8.Controls.Add(this.c811);
            this.tabPage8.Controls.Add(this.c812);
            this.tabPage8.Controls.Add(this.label44);
            this.tabPage8.Controls.Add(this.c810);
            this.tabPage8.Controls.Add(this.label46);
            this.tabPage8.Controls.Add(this.c809);
            this.tabPage8.Controls.Add(this.label47);
            this.tabPage8.Controls.Add(this.c808);
            this.tabPage8.Controls.Add(this.label48);
            this.tabPage8.Controls.Add(this.c807);
            this.tabPage8.Controls.Add(this.label49);
            this.tabPage8.Controls.Add(this.c806);
            this.tabPage8.Controls.Add(this.label51);
            this.tabPage8.Controls.Add(this.c805);
            this.tabPage8.Controls.Add(this.label52);
            this.tabPage8.Controls.Add(this.c803);
            this.tabPage8.Controls.Add(this.c802);
            this.tabPage8.Controls.Add(this.label53);
            this.tabPage8.Controls.Add(this.label54);
            this.tabPage8.Controls.Add(this.c801);
            this.tabPage8.Controls.Add(this.c800);
            this.tabPage8.Controls.Add(this.label55);
            this.tabPage8.Controls.Add(this.label56);
            this.tabPage8.Location = new System.Drawing.Point(4, 22);
            this.tabPage8.Name = "tabPage8";
            this.tabPage8.Size = new System.Drawing.Size(783, 303);
            this.tabPage8.TabIndex = 7;
            this.tabPage8.Text = "Chuyển số liệu phiếu xuất";
            // 
            // c813
            // 
            this.c813.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c813.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c813.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c813.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c813.Location = new System.Drawing.Point(416, 256);
            this.c813.Name = "c813";
            this.c813.Size = new System.Drawing.Size(359, 21);
            this.c813.TabIndex = 141;
            // 
            // c811
            // 
            this.c811.Location = new System.Drawing.Point(88, 260);
            this.c811.Name = "c811";
            this.c811.Size = new System.Drawing.Size(360, 16);
            this.c811.TabIndex = 140;
            this.c811.Text = "Phân biệt kinh phí hàng năm, Tài khoản nợ kinh phí năm trước :";
            this.c811.CheckedChanged += new System.EventHandler(this.c811_CheckedChanged);
            // 
            // c812
            // 
            this.c812.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c812.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c812.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c812.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c812.Location = new System.Drawing.Point(86, 233);
            this.c812.Name = "c812";
            this.c812.Size = new System.Drawing.Size(689, 21);
            this.c812.TabIndex = 138;
            // 
            // label44
            // 
            this.label44.Location = new System.Drawing.Point(-2, 233);
            this.label44.Name = "label44";
            this.label44.Size = new System.Drawing.Size(88, 23);
            this.label44.TabIndex = 139;
            this.label44.Text = "Khoản mục nợ :";
            this.label44.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c810
            // 
            this.c810.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c810.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c810.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c810.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c810.Location = new System.Drawing.Point(86, 5);
            this.c810.Name = "c810";
            this.c810.Size = new System.Drawing.Size(689, 21);
            this.c810.TabIndex = 118;
            // 
            // label46
            // 
            this.label46.Location = new System.Drawing.Point(22, 5);
            this.label46.Name = "label46";
            this.label46.Size = new System.Drawing.Size(64, 23);
            this.label46.TabIndex = 137;
            this.label46.Text = "Nhóm :";
            this.label46.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c809
            // 
            this.c809.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c809.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c809.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c809.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c809.Location = new System.Drawing.Point(86, 211);
            this.c809.Name = "c809";
            this.c809.Size = new System.Drawing.Size(689, 21);
            this.c809.TabIndex = 129;
            // 
            // label47
            // 
            this.label47.Location = new System.Drawing.Point(-2, 210);
            this.label47.Name = "label47";
            this.label47.Size = new System.Drawing.Size(88, 23);
            this.label47.TabIndex = 136;
            this.label47.Text = "Người dùng :";
            this.label47.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c808
            // 
            this.c808.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c808.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c808.Location = new System.Drawing.Point(86, 188);
            this.c808.Name = "c808";
            this.c808.Size = new System.Drawing.Size(689, 21);
            this.c808.TabIndex = 128;
            // 
            // label48
            // 
            this.label48.Location = new System.Drawing.Point(6, 188);
            this.label48.Name = "label48";
            this.label48.Size = new System.Drawing.Size(80, 23);
            this.label48.TabIndex = 135;
            this.label48.Text = "Nội dung :";
            this.label48.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c807
            // 
            this.c807.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c807.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c807.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c807.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c807.Location = new System.Drawing.Point(86, 165);
            this.c807.Name = "c807";
            this.c807.Size = new System.Drawing.Size(689, 21);
            this.c807.TabIndex = 127;
            // 
            // label49
            // 
            this.label49.Location = new System.Drawing.Point(6, 165);
            this.label49.Name = "label49";
            this.label49.Size = new System.Drawing.Size(80, 23);
            this.label49.TabIndex = 134;
            this.label49.Text = "Cấp phát :";
            this.label49.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c806
            // 
            this.c806.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c806.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c806.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c806.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c806.Location = new System.Drawing.Point(86, 143);
            this.c806.Name = "c806";
            this.c806.Size = new System.Drawing.Size(689, 21);
            this.c806.TabIndex = 125;
            // 
            // label51
            // 
            this.label51.Location = new System.Drawing.Point(14, 141);
            this.label51.Name = "label51";
            this.label51.Size = new System.Drawing.Size(72, 23);
            this.label51.TabIndex = 133;
            this.label51.Text = "Loại khoản :";
            this.label51.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c805
            // 
            this.c805.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c805.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c805.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c805.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c805.Location = new System.Drawing.Point(86, 120);
            this.c805.Name = "c805";
            this.c805.Size = new System.Drawing.Size(689, 21);
            this.c805.TabIndex = 124;
            // 
            // label52
            // 
            this.label52.Location = new System.Drawing.Point(6, 117);
            this.label52.Name = "label52";
            this.label52.Size = new System.Drawing.Size(80, 23);
            this.label52.TabIndex = 132;
            this.label52.Text = "Loại bảng kê :";
            this.label52.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c803
            // 
            this.c803.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c803.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c803.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c803.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c803.Location = new System.Drawing.Point(86, 97);
            this.c803.Name = "c803";
            this.c803.Size = new System.Drawing.Size(689, 21);
            this.c803.TabIndex = 122;
            // 
            // c802
            // 
            this.c802.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c802.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c802.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c802.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c802.Location = new System.Drawing.Point(86, 74);
            this.c802.Name = "c802";
            this.c802.Size = new System.Drawing.Size(689, 21);
            this.c802.TabIndex = 121;
            // 
            // label53
            // 
            this.label53.Location = new System.Drawing.Point(22, 97);
            this.label53.Name = "label53";
            this.label53.Size = new System.Drawing.Size(64, 23);
            this.label53.TabIndex = 131;
            this.label53.Text = "Nghiệp vụ :";
            this.label53.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label54
            // 
            this.label54.Location = new System.Drawing.Point(30, 74);
            this.label54.Name = "label54";
            this.label54.Size = new System.Drawing.Size(56, 23);
            this.label54.TabIndex = 130;
            this.label54.Text = "Chương :";
            this.label54.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c801
            // 
            this.c801.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c801.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c801.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c801.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c801.Location = new System.Drawing.Point(86, 51);
            this.c801.Name = "c801";
            this.c801.Size = new System.Drawing.Size(689, 21);
            this.c801.TabIndex = 120;
            // 
            // c800
            // 
            this.c800.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c800.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c800.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c800.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c800.Location = new System.Drawing.Point(86, 28);
            this.c800.Name = "c800";
            this.c800.Size = new System.Drawing.Size(689, 21);
            this.c800.TabIndex = 119;
            // 
            // label55
            // 
            this.label55.Location = new System.Drawing.Point(38, 51);
            this.label55.Name = "label55";
            this.label55.Size = new System.Drawing.Size(48, 23);
            this.label55.TabIndex = 126;
            this.label55.Text = "Loại :";
            this.label55.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label56
            // 
            this.label56.Location = new System.Drawing.Point(22, 28);
            this.label56.Name = "label56";
            this.label56.Size = new System.Drawing.Size(64, 23);
            this.label56.TabIndex = 123;
            this.label56.Text = "Hoạt động :";
            this.label56.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // tabPage9
            // 
            this.tabPage9.Controls.Add(this.label68);
            this.tabPage9.Controls.Add(this.c904);
            this.tabPage9.Controls.Add(this.c912);
            this.tabPage9.Controls.Add(this.label57);
            this.tabPage9.Controls.Add(this.c910);
            this.tabPage9.Controls.Add(this.label58);
            this.tabPage9.Controls.Add(this.c909);
            this.tabPage9.Controls.Add(this.label59);
            this.tabPage9.Controls.Add(this.c908);
            this.tabPage9.Controls.Add(this.label60);
            this.tabPage9.Controls.Add(this.dataGrid2);
            this.tabPage9.Controls.Add(this.c907);
            this.tabPage9.Controls.Add(this.label61);
            this.tabPage9.Controls.Add(this.c906);
            this.tabPage9.Controls.Add(this.label62);
            this.tabPage9.Controls.Add(this.c905);
            this.tabPage9.Controls.Add(this.label63);
            this.tabPage9.Controls.Add(this.c903);
            this.tabPage9.Controls.Add(this.c902);
            this.tabPage9.Controls.Add(this.label64);
            this.tabPage9.Controls.Add(this.label65);
            this.tabPage9.Controls.Add(this.c901);
            this.tabPage9.Controls.Add(this.c900);
            this.tabPage9.Controls.Add(this.label66);
            this.tabPage9.Controls.Add(this.label67);
            this.tabPage9.Location = new System.Drawing.Point(4, 22);
            this.tabPage9.Name = "tabPage9";
            this.tabPage9.Size = new System.Drawing.Size(783, 303);
            this.tabPage9.TabIndex = 8;
            this.tabPage9.Text = "Chuyển số liệu viện phí";
            // 
            // label68
            // 
            this.label68.Location = new System.Drawing.Point(0, 266);
            this.label68.Name = "label68";
            this.label68.Size = new System.Drawing.Size(88, 23);
            this.label68.TabIndex = 142;
            this.label68.Text = "Nguồn kinh phí :";
            this.label68.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c904
            // 
            this.c904.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c904.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c904.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c904.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c904.Location = new System.Drawing.Point(88, 266);
            this.c904.Name = "c904";
            this.c904.Size = new System.Drawing.Size(311, 21);
            this.c904.TabIndex = 141;
            // 
            // c912
            // 
            this.c912.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c912.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c912.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c912.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c912.Location = new System.Drawing.Point(88, 243);
            this.c912.Name = "c912";
            this.c912.Size = new System.Drawing.Size(311, 21);
            this.c912.TabIndex = 139;
            // 
            // label57
            // 
            this.label57.Location = new System.Drawing.Point(0, 243);
            this.label57.Name = "label57";
            this.label57.Size = new System.Drawing.Size(88, 23);
            this.label57.TabIndex = 140;
            this.label57.Text = "Khoản mục nợ :";
            this.label57.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c910
            // 
            this.c910.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c910.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c910.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c910.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c910.Location = new System.Drawing.Point(88, 13);
            this.c910.Name = "c910";
            this.c910.Size = new System.Drawing.Size(311, 21);
            this.c910.TabIndex = 118;
            // 
            // label58
            // 
            this.label58.Location = new System.Drawing.Point(24, 13);
            this.label58.Name = "label58";
            this.label58.Size = new System.Drawing.Size(64, 23);
            this.label58.TabIndex = 138;
            this.label58.Text = "Nhóm :";
            this.label58.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c909
            // 
            this.c909.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c909.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c909.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c909.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c909.Location = new System.Drawing.Point(88, 219);
            this.c909.Name = "c909";
            this.c909.Size = new System.Drawing.Size(311, 21);
            this.c909.TabIndex = 129;
            // 
            // label59
            // 
            this.label59.Location = new System.Drawing.Point(0, 218);
            this.label59.Name = "label59";
            this.label59.Size = new System.Drawing.Size(88, 23);
            this.label59.TabIndex = 137;
            this.label59.Text = "Người dùng :";
            this.label59.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c908
            // 
            this.c908.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c908.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c908.Location = new System.Drawing.Point(88, 196);
            this.c908.Name = "c908";
            this.c908.Size = new System.Drawing.Size(311, 21);
            this.c908.TabIndex = 128;
            // 
            // label60
            // 
            this.label60.Location = new System.Drawing.Point(8, 196);
            this.label60.Name = "label60";
            this.label60.Size = new System.Drawing.Size(80, 23);
            this.label60.TabIndex = 136;
            this.label60.Text = "Nội dung :";
            this.label60.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // dataGrid2
            // 
            this.dataGrid2.AlternatingBackColor = System.Drawing.Color.Lavender;
            this.dataGrid2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.dataGrid2.BackColor = System.Drawing.Color.WhiteSmoke;
            this.dataGrid2.BackgroundColor = System.Drawing.SystemColors.Control;
            this.dataGrid2.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.dataGrid2.CaptionBackColor = System.Drawing.SystemColors.Control;
            this.dataGrid2.CaptionFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.dataGrid2.CaptionForeColor = System.Drawing.Color.MidnightBlue;
            this.dataGrid2.DataMember = "";
            this.dataGrid2.FlatMode = true;
            this.dataGrid2.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.dataGrid2.ForeColor = System.Drawing.Color.MidnightBlue;
            this.dataGrid2.GridLineColor = System.Drawing.Color.Gainsboro;
            this.dataGrid2.GridLineStyle = System.Windows.Forms.DataGridLineStyle.None;
            this.dataGrid2.HeaderFont = new System.Drawing.Font("Tahoma", 8F, System.Drawing.FontStyle.Bold);
            this.dataGrid2.HeaderForeColor = System.Drawing.Color.WhiteSmoke;
            this.dataGrid2.LinkColor = System.Drawing.Color.Teal;
            this.dataGrid2.Location = new System.Drawing.Point(407, -5);
            this.dataGrid2.Name = "dataGrid2";
            this.dataGrid2.ParentRowsBackColor = System.Drawing.Color.Gainsboro;
            this.dataGrid2.ParentRowsForeColor = System.Drawing.Color.MidnightBlue;
            this.dataGrid2.ReadOnly = true;
            this.dataGrid2.RowHeaderWidth = 10;
            this.dataGrid2.SelectionBackColor = System.Drawing.Color.CadetBlue;
            this.dataGrid2.SelectionForeColor = System.Drawing.Color.WhiteSmoke;
            this.dataGrid2.Size = new System.Drawing.Size(372, 302);
            this.dataGrid2.TabIndex = 135;
            // 
            // c907
            // 
            this.c907.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c907.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c907.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c907.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c907.Location = new System.Drawing.Point(88, 173);
            this.c907.Name = "c907";
            this.c907.Size = new System.Drawing.Size(311, 21);
            this.c907.TabIndex = 127;
            // 
            // label61
            // 
            this.label61.Location = new System.Drawing.Point(8, 173);
            this.label61.Name = "label61";
            this.label61.Size = new System.Drawing.Size(80, 23);
            this.label61.TabIndex = 134;
            this.label61.Text = "Cấp phát :";
            this.label61.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c906
            // 
            this.c906.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c906.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c906.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c906.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c906.Location = new System.Drawing.Point(88, 151);
            this.c906.Name = "c906";
            this.c906.Size = new System.Drawing.Size(311, 21);
            this.c906.TabIndex = 125;
            // 
            // label62
            // 
            this.label62.Location = new System.Drawing.Point(16, 149);
            this.label62.Name = "label62";
            this.label62.Size = new System.Drawing.Size(72, 23);
            this.label62.TabIndex = 133;
            this.label62.Text = "Loại khoản :";
            this.label62.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c905
            // 
            this.c905.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c905.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c905.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c905.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c905.Location = new System.Drawing.Point(88, 128);
            this.c905.Name = "c905";
            this.c905.Size = new System.Drawing.Size(311, 21);
            this.c905.TabIndex = 124;
            // 
            // label63
            // 
            this.label63.Location = new System.Drawing.Point(8, 125);
            this.label63.Name = "label63";
            this.label63.Size = new System.Drawing.Size(80, 23);
            this.label63.TabIndex = 132;
            this.label63.Text = "Loại bảng kê :";
            this.label63.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c903
            // 
            this.c903.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c903.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c903.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c903.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c903.Location = new System.Drawing.Point(88, 105);
            this.c903.Name = "c903";
            this.c903.Size = new System.Drawing.Size(311, 21);
            this.c903.TabIndex = 122;
            // 
            // c902
            // 
            this.c902.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c902.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c902.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c902.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c902.Location = new System.Drawing.Point(88, 82);
            this.c902.Name = "c902";
            this.c902.Size = new System.Drawing.Size(311, 21);
            this.c902.TabIndex = 121;
            // 
            // label64
            // 
            this.label64.Location = new System.Drawing.Point(24, 105);
            this.label64.Name = "label64";
            this.label64.Size = new System.Drawing.Size(64, 23);
            this.label64.TabIndex = 131;
            this.label64.Text = "Nghiệp vụ :";
            this.label64.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label65
            // 
            this.label65.Location = new System.Drawing.Point(32, 82);
            this.label65.Name = "label65";
            this.label65.Size = new System.Drawing.Size(56, 23);
            this.label65.TabIndex = 130;
            this.label65.Text = "Chương :";
            this.label65.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c901
            // 
            this.c901.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c901.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c901.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c901.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c901.Location = new System.Drawing.Point(88, 59);
            this.c901.Name = "c901";
            this.c901.Size = new System.Drawing.Size(311, 21);
            this.c901.TabIndex = 120;
            // 
            // c900
            // 
            this.c900.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c900.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c900.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c900.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c900.Location = new System.Drawing.Point(88, 36);
            this.c900.Name = "c900";
            this.c900.Size = new System.Drawing.Size(311, 21);
            this.c900.TabIndex = 119;
            // 
            // label66
            // 
            this.label66.Location = new System.Drawing.Point(40, 59);
            this.label66.Name = "label66";
            this.label66.Size = new System.Drawing.Size(48, 23);
            this.label66.TabIndex = 126;
            this.label66.Text = "Loại :";
            this.label66.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // label67
            // 
            this.label67.Location = new System.Drawing.Point(24, 36);
            this.label67.Name = "label67";
            this.label67.Size = new System.Drawing.Size(64, 23);
            this.label67.TabIndex = 123;
            this.label67.Text = "Hoạt động :";
            this.label67.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c704
            // 
            this.c704.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c704.BackColor = System.Drawing.SystemColors.HighlightText;
            this.c704.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.c704.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c704.Location = new System.Drawing.Point(83, 336);
            this.c704.Name = "c704";
            this.c704.Size = new System.Drawing.Size(312, 21);
            this.c704.TabIndex = 4;
            this.c704.Visible = false;
            // 
            // label45
            // 
            this.label45.Location = new System.Drawing.Point(-6, 337);
            this.label45.Name = "label45";
            this.label45.Size = new System.Drawing.Size(88, 23);
            this.label45.TabIndex = 21;
            this.label45.Text = "Nguồn kinh phí :";
            this.label45.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.label45.Visible = false;
            // 
            // tabPage3
            // 
            this.tabPage3.Controls.Add(this.c301);
            this.tabPage3.Controls.Add(this.label18);
            this.tabPage3.Controls.Add(this.c300);
            this.tabPage3.Location = new System.Drawing.Point(4, 22);
            this.tabPage3.Name = "tabPage3";
            this.tabPage3.Size = new System.Drawing.Size(640, 238);
            this.tabPage3.TabIndex = 2;
            this.tabPage3.Text = "Vật tư hàng hóa";
            // 
            // c301
            // 
            this.c301.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c301.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c301.Location = new System.Drawing.Point(170, 6);
            this.c301.Name = "c301";
            this.c301.Size = new System.Drawing.Size(462, 21);
            this.c301.TabIndex = 0;
            // 
            // label18
            // 
            this.label18.Location = new System.Drawing.Point(-12, 10);
            this.label18.Name = "label18";
            this.label18.Size = new System.Drawing.Size(184, 16);
            this.label18.TabIndex = 9;
            this.label18.Text = "Tài khoản chi phí chờ kết chuyển :";
            this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c300
            // 
            this.c300.Location = new System.Drawing.Point(170, 32);
            this.c300.Name = "c300";
            this.c300.Size = new System.Drawing.Size(208, 16);
            this.c300.TabIndex = 1;
            this.c300.Text = "Cho phép xuất tồn âm";
            // 
            // tabPage4
            // 
            this.tabPage4.Controls.Add(this.c404);
            this.tabPage4.Controls.Add(this.label23);
            this.tabPage4.Controls.Add(this.c403);
            this.tabPage4.Controls.Add(this.label22);
            this.tabPage4.Controls.Add(this.c402);
            this.tabPage4.Controls.Add(this.label21);
            this.tabPage4.Controls.Add(this.c401);
            this.tabPage4.Controls.Add(this.label20);
            this.tabPage4.Controls.Add(this.c400);
            this.tabPage4.Controls.Add(this.label19);
            this.tabPage4.Location = new System.Drawing.Point(4, 22);
            this.tabPage4.Name = "tabPage4";
            this.tabPage4.Size = new System.Drawing.Size(640, 238);
            this.tabPage4.TabIndex = 3;
            this.tabPage4.Text = "Giá thành";
            // 
            // c404
            // 
            this.c404.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c404.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c404.Location = new System.Drawing.Point(184, 95);
            this.c404.Name = "c404";
            this.c404.Size = new System.Drawing.Size(450, 21);
            this.c404.TabIndex = 4;
            // 
            // label23
            // 
            this.label23.Location = new System.Drawing.Point(0, 98);
            this.label23.Name = "label23";
            this.label23.Size = new System.Drawing.Size(184, 16);
            this.label23.TabIndex = 11;
            this.label23.Text = "Tài khoản xuất bán trực tiếp :";
            this.label23.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c403
            // 
            this.c403.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c403.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c403.Location = new System.Drawing.Point(184, 72);
            this.c403.Name = "c403";
            this.c403.Size = new System.Drawing.Size(450, 21);
            this.c403.TabIndex = 3;
            // 
            // label22
            // 
            this.label22.Location = new System.Drawing.Point(0, 75);
            this.label22.Name = "label22";
            this.label22.Size = new System.Drawing.Size(184, 16);
            this.label22.TabIndex = 9;
            this.label22.Text = "Tài khoản có giảm giá thành :";
            this.label22.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c402
            // 
            this.c402.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c402.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c402.Location = new System.Drawing.Point(184, 50);
            this.c402.Name = "c402";
            this.c402.Size = new System.Drawing.Size(450, 21);
            this.c402.TabIndex = 2;
            // 
            // label21
            // 
            this.label21.Location = new System.Drawing.Point(0, 53);
            this.label21.Name = "label21";
            this.label21.Size = new System.Drawing.Size(184, 16);
            this.label21.TabIndex = 7;
            this.label21.Text = "Tài khoản nợ giảm giá thành :";
            this.label21.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c401
            // 
            this.c401.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c401.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c401.Location = new System.Drawing.Point(184, 28);
            this.c401.Name = "c401";
            this.c401.Size = new System.Drawing.Size(450, 21);
            this.c401.TabIndex = 1;
            // 
            // label20
            // 
            this.label20.Location = new System.Drawing.Point(0, 30);
            this.label20.Name = "label20";
            this.label20.Size = new System.Drawing.Size(184, 16);
            this.label20.TabIndex = 5;
            this.label20.Text = "Tài khoản nguồn vật liệu chính :";
            this.label20.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c400
            // 
            this.c400.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c400.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c400.Location = new System.Drawing.Point(184, 5);
            this.c400.Name = "c400";
            this.c400.Size = new System.Drawing.Size(450, 21);
            this.c400.TabIndex = 0;
            // 
            // label19
            // 
            this.label19.Location = new System.Drawing.Point(0, 7);
            this.label19.Name = "label19";
            this.label19.Size = new System.Drawing.Size(184, 16);
            this.label19.TabIndex = 3;
            this.label19.Text = "Tài khoản tính giá thành :";
            this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // tabPage5
            // 
            this.tabPage5.Controls.Add(this.c502);
            this.tabPage5.Controls.Add(this.label25);
            this.tabPage5.Controls.Add(this.c501);
            this.tabPage5.Controls.Add(this.label24);
            this.tabPage5.Controls.Add(this.c500);
            this.tabPage5.Location = new System.Drawing.Point(4, 22);
            this.tabPage5.Name = "tabPage5";
            this.tabPage5.Size = new System.Drawing.Size(640, 238);
            this.tabPage5.TabIndex = 4;
            this.tabPage5.Text = "Tài sản cố định";
            // 
            // c502
            // 
            this.c502.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c502.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c502.Location = new System.Drawing.Point(171, 29);
            this.c502.Name = "c502";
            this.c502.Size = new System.Drawing.Size(462, 21);
            this.c502.TabIndex = 1;
            // 
            // label25
            // 
            this.label25.Location = new System.Drawing.Point(-12, 32);
            this.label25.Name = "label25";
            this.label25.Size = new System.Drawing.Size(184, 16);
            this.label25.TabIndex = 14;
            this.label25.Text = "Điều chỉnh khấu hao theo năm :";
            this.label25.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c501
            // 
            this.c501.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.c501.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.c501.Location = new System.Drawing.Point(171, 6);
            this.c501.Name = "c501";
            this.c501.Size = new System.Drawing.Size(462, 21);
            this.c501.TabIndex = 0;
            // 
            // label24
            // 
            this.label24.Location = new System.Drawing.Point(-12, 9);
            this.label24.Name = "label24";
            this.label24.Size = new System.Drawing.Size(184, 16);
            this.label24.TabIndex = 12;
            this.label24.Text = "Cho phép ghi âm giá trị còn lại :";
            this.label24.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // c500
            // 
            this.c500.Location = new System.Drawing.Point(170, 54);
            this.c500.Name = "c500";
            this.c500.Size = new System.Drawing.Size(208, 16);
            this.c500.TabIndex = 2;
            this.c500.Text = "Phân bổ chi tiết tài sản cố định";
            // 
            // butLuu
            // 
            this.butLuu.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.butLuu.Image = ((System.Drawing.Image)(resources.GetObject("butLuu.Image")));
            this.butLuu.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.butLuu.Location = new System.Drawing.Point(631, 365);
            this.butLuu.Name = "butLuu";
            this.butLuu.Size = new System.Drawing.Size(75, 25);
            this.butLuu.TabIndex = 1;
            this.butLuu.Text = "&Cập nhật";
            this.butLuu.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.butLuu.Click += new System.EventHandler(this.butLuu_Click);
            // 
            // butKetthuc
            // 
            this.butKetthuc.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.butKetthuc.Image = ((System.Drawing.Image)(resources.GetObject("butKetthuc.Image")));
            this.butKetthuc.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.butKetthuc.Location = new System.Drawing.Point(712, 365);
            this.butKetthuc.Name = "butKetthuc";
            this.butKetthuc.Size = new System.Drawing.Size(75, 25);
            this.butKetthuc.TabIndex = 2;
            this.butKetthuc.Text = "    &Kết thúc";
            this.butKetthuc.Click += new System.EventHandler(this.butKetthuc_Click);
            // 
            // frmThongso
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(791, 392);
            this.Controls.Add(this.butKetthuc);
            this.Controls.Add(this.butLuu);
            this.Controls.Add(this.tab);
            this.Controls.Add(this.label45);
            this.Controls.Add(this.c704);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Name = "frmThongso";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "Khai báo thông số";
            this.Load += new System.EventHandler(this.frmThongso_Load);
            this.tab.ResumeLayout(false);
            this.tabPage1.ResumeLayout(false);
            this.tabPage1.PerformLayout();
            this.tabPage2.ResumeLayout(false);
            this.tabPage2.PerformLayout();
            this.tabPage6.ResumeLayout(false);
            this.tabPage6.PerformLayout();
            this.tabPage7.ResumeLayout(false);
            this.tabPage7.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
            this.tabPage8.ResumeLayout(false);
            this.tabPage8.PerformLayout();
            this.tabPage9.ResumeLayout(false);
            this.tabPage9.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dataGrid2)).EndInit();
            this.tabPage3.ResumeLayout(false);
            this.tabPage3.PerformLayout();
            this.tabPage4.ResumeLayout(false);
            this.tabPage4.PerformLayout();
            this.tabPage5.ResumeLayout(false);
            this.tabPage5.PerformLayout();
            this.ResumeLayout(false);

		}
		#endregion

		private void ins(int id,string loai,string ten)
		{
			if (a.get_data("select * from a_thongso where id="+id).Tables[0].Rows.Count==0) a.upd_thongso(id,loai,ten);	
		}

		private void init()
		{
			ins(100,"Ngày bắt đầu",a.ngayhienhanh_server.Substring(0,10));
			ins(101,"Mã đơn vị","");
			ins(102,"Đơn vị","");
			ins(103,"Cơ quan chủ quản","");
			ins(104,"Địa chỉ","");
			ins(105,"Phường/ Xã","");
			ins(106,"Quận/ Huyện","");
			ins(107,"Tỉnh/ Thành Phố","");
			ins(108,"Điện thoại","");
			ins(109,"Fax","");
			ins(110,"Email","");
			ins(111,"Web","");
			ins(112,"Mã số thuế","");
			ins(113,"Tài khoản","");
		
			ins(200, "Tài khoản chờ phân bổ", "1421, 1422, 242");
			ins(201, "TK nợ đầu vào thuế GTGT", "133");
			ins(202, "TK có đầu ra thuế GTGT", "3331");
			ins(203, "Không nhập bảng kê chứng từ","0");
			ins(204, "Số chứng từ tăng tự động","0");
			ins(205, "Khóa số liệu","0");
			ins(206, "tăng theo năm","0");

			ins(300, "Cho phép xuất tồn âm","0");
			ins(301, "Tài khoản chi phí chờ kết chuyển","");
		
			ins(400, "Tài khoản tính giá thành", "154");
			ins(401, "Tài khoản nguồn vật liệu chính","1541");
			ins(402, "Tài khoản nợ giãm giá thành","15211,15212,1523");
			ins(403, "Tài khoản có giãm giá thành","1542");
			ins(404, "Tài khoản xuất bán trực tiếp","1541");
		
			ins(500, "Phân bổ chi tiết tài sản cố định","");
			ins(501, "Cho phép ghi âm giá trị còn lại","");
			ins(502, "Điều chỉnh khấu hao theo năm","0");
		
			ins(600, "Giám đốc","");
			ins(601, "Kế toán trưởng","");
			ins(602, "Kế toán tiền mặt","");
			ins(603, "Kế toán ngân hàng","");
			ins(604, "Kế toán vật tư","");
			ins(605, "Kế toán hàng hóa","");
			ins(606, "Kế toán tổng hợp","");
			ins(607, "Thủ quỹ","");

			ins(700,"Hoạt động","0");
			ins(701,"Loại","0");
			ins(702,"Chương","0");
			ins(703,"Nghiệp vụ","0");
			ins(704,"Nguồn kinh phí","0");
			ins(705,"Loại bảng kê","0");
			ins(706,"Loại khoản","0");
			ins(707,"Cấp phát","0");
			ins(708,"Nội dung","");
			ins(709,"userid","0");
			ins(710,"Nhóm","0");
			ins(711,"Số tài khoản hàng năm","0");
			ins(712,"khoản mục nợ","0");

			ins(800,"Hoạt động","0");
			ins(801,"Loại","0");
			ins(802,"Chương","0");
			ins(803,"Nghiệp vụ","0");
			ins(804,"Nguồn kinh phí","0");
			ins(805,"Loại bảng kê","0");
			ins(806,"Loại khoản","0");
			ins(807,"Cấp phát","0");
			ins(808,"Nội dung","");
			ins(809,"userid","0");
			ins(810,"Nhóm","0");
			ins(811,"Số tài khoản hàng năm","0");
			ins(812,"khoản mục nợ","0");
			ins(813,"Tài khoản nợ năm trước","0");

			ins(900,"Hoạt động","0");
			ins(901,"Loại","0");
			ins(902,"Chương","0");
			ins(903,"Nghiệp vụ","0");
			ins(904,"Nguồn kinh phí","0");
			ins(905,"Loại bảng kê","0");
			ins(906,"Loại khoản","0");
			ins(907,"Cấp phát","0");
			ins(908,"Nội dung","");
			ins(909,"userid","0");
			ins(910,"Nhóm","0");
			ins(911,"Số tài khoản hàng năm","0");
			ins(912,"khoản mục nợ","0");
			ins(913,"Tài khoản nợ năm trước","0");
		}

		private void load()
		{
			foreach(DataRow r in a.get_data("select * from a_thongso order by id").Tables[0].Rows)
			{
				switch (int.Parse(r["id"].ToString()))
				{
					case 100: c100.Value=new DateTime(int.Parse(r["ten"].ToString().Substring(6,4)),int.Parse(r["ten"].ToString().Substring(3,2)),int.Parse(r["ten"].ToString().Substring(0,2)));break;
					case 101: c101.Text=r["ten"].ToString();	break;
					case 102: c102.Text=r["ten"].ToString();	break;
					case 103: c103.Text=r["ten"].ToString();	break;
					case 104: c104.Text=r["ten"].ToString();	break;
					case 105: c105.Text=r["ten"].ToString();	break;
					case 106: c106.Text=r["ten"].ToString();	break;
					case 107: c107.Text=r["ten"].ToString();	break;
					case 108: c108.Text=r["ten"].ToString();	break;
					case 109: c109.Text=r["ten"].ToString();	break;
					case 110: c110.Text=r["ten"].ToString();	break;
					case 111: c111.Text=r["ten"].ToString();	break;
					case 112: c112.Text=r["ten"].ToString();	break;
					case 113: c113.Text=r["ten"].ToString();	break;
					
					case 200: c200.Text=r["ten"].ToString();	break;
					case 201: c201.Text=r["ten"].ToString();	break;	
					case 202: c202.Text=r["ten"].ToString();	break;
					case 203: c203.Checked=r["ten"].ToString() == "1";break;
					case 204: c204.Checked=r["ten"].ToString() == "1";break;
					case 205: c205.Checked=a.bKhoaso(mmyy);break;
					case 206: c206.Checked=r["ten"].ToString() == "1";break;

					case 300: c300.Checked=r["ten"].ToString() == "1";break;				
					case 301: c301.Text=r["ten"].ToString();	break;
					
					case 400: c400.Text=r["ten"].ToString();	break;
					case 401: c401.Text=r["ten"].ToString();	break;
					case 402: c402.Text=r["ten"].ToString();	break;
					case 403: c403.Text=r["ten"].ToString();	break;
					case 404: c404.Text=r["ten"].ToString();	break;
				
					case 500: c500.Checked=r["ten"].ToString() == "1";break;
					case 501: c501.Text=r["ten"].ToString();	break;
					case 502: c502.Text=r["ten"].ToString();	break;
					
					case 600: c600.Text=r["ten"].ToString();	break;
					case 601: c601.Text=r["ten"].ToString();	break;
					case 602: c602.Text=r["ten"].ToString();	break;
					case 603: c603.Text=r["ten"].ToString();	break;
					case 604: c604.Text=r["ten"].ToString();	break;
					case 605: c605.Text=r["ten"].ToString();	break;
					case 606: c606.Text=r["ten"].ToString();	break;
					case 607: c607.Text=r["ten"].ToString();	break;	

					case 700: c700.SelectedValue=r["ten"].ToString();	break;
					case 701: c701.SelectedValue=r["ten"].ToString();	break;
					case 702: c702.SelectedValue=r["ten"].ToString();	break;
					case 703: c703.SelectedValue=r["ten"].ToString();	break;
					case 704: c704.SelectedValue=r["ten"].ToString();	break;
					case 705: c705.SelectedValue=r["ten"].ToString();	break;
					case 706: c706.SelectedValue=r["ten"].ToString();	break;
					case 707: c707.SelectedValue=r["ten"].ToString();	break;	
					case 708: c708.Text=r["ten"].ToString();	break;	
					case 709: c709.SelectedValue=r["ten"].ToString();	break;	
					case 710: c710.SelectedValue=r["ten"].ToString();	break;	
					case 711: c711.Checked=r["ten"].ToString()=="1";	break;	
					case 712: c712.SelectedValue=r["ten"].ToString();	break;	

					case 800: c800.SelectedValue=r["ten"].ToString();	break;
					case 801: c801.SelectedValue=r["ten"].ToString();	break;
					case 802: c802.SelectedValue=r["ten"].ToString();	break;
					case 803: c803.SelectedValue=r["ten"].ToString();	break;
					case 813: c813.SelectedValue=r["ten"].ToString();	break;
					case 805: c805.SelectedValue=r["ten"].ToString();	break;
					case 806: c806.SelectedValue=r["ten"].ToString();	break;
					case 807: c807.SelectedValue=r["ten"].ToString();	break;	
					case 808: c808.Text=r["ten"].ToString();	break;	
					case 809: c809.SelectedValue=r["ten"].ToString();	break;	
					case 810: c810.SelectedValue=r["ten"].ToString();	break;	
					case 811: c811.Checked=r["ten"].ToString()=="1";	break;	
					case 812: c812.SelectedValue=r["ten"].ToString();	break;	

					case 900: c900.SelectedValue=r["ten"].ToString();	break;
					case 901: c901.SelectedValue=r["ten"].ToString();	break;
					case 902: c902.SelectedValue=r["ten"].ToString();	break;
					case 903: c903.SelectedValue=r["ten"].ToString();	break;
					case 904: c904.SelectedValue=r["ten"].ToString();	break;
					//case 913: c913.SelectedValue=r["ten"].ToString();	break;
					case 905: c905.SelectedValue=r["ten"].ToString();	break;
					case 906: c906.SelectedValue=r["ten"].ToString();	break;
					case 907: c907.SelectedValue=r["ten"].ToString();	break;	
					case 908: c908.Text=r["ten"].ToString();	break;	
					case 909: c909.SelectedValue=r["ten"].ToString();	break;	
					case 910: c910.SelectedValue=r["ten"].ToString();	break;	
					//case 911: c911.Checked=r["ten"].ToString()=="1";	break;	
					case 912: c912.SelectedValue=r["ten"].ToString();	break;	
				}
			}

			c206.Enabled=c204.Checked;
			c813.Enabled=c811.Checked;
			foreach(System.Windows.Forms.Control t in this.tab.Controls)
			{				
				foreach(System.Windows.Forms.Control c in t.Controls)
				{
					try
					{
						CheckBox chk=(CheckBox)c;
						if (chk.Checked) chk.ForeColor=Color.Red;
					}
					catch{}
				}
			}
		}

		private void load_dm()
		{
			c700.DisplayMember="TEN";
			c700.ValueMember="ID";
			c700.DataSource=a.get_data("select * from a_hoatdong where sudung=1 order by stt").Tables[0];

			c701.DisplayMember="TEN";
			c701.ValueMember="ID";
			c701.DataSource=a.get_data("select * from a_bcnghang where chucnang in (5) order by stt").Tables[0];

			c702.DisplayMember="TEN";
			c702.ValueMember="ID";
			c702.DataSource=a.get_data("select * from a_dmchuong where sudung=1 order by stt").Tables[0];

			c703.DisplayMember="TEN";
			c703.ValueMember="ID";
			c703.DataSource=a.get_data("select * from a_nghiepvu where sudung=1 order by stt").Tables[0];

			c704.DisplayMember="TEN";
			c704.ValueMember="ID";
			c704.DataSource=a.get_data("select * from a_dmtcnkp where sudung=1 order by stt").Tables[0];
	
			c705.DisplayMember="TEN";
			c705.ValueMember="ID";
			c705.DataSource=a.get_data("select * from a_dmloaibk where sudung=1 order by stt").Tables[0];
            
			c706.DisplayMember="LK";
			c706.ValueMember="ID";
			c706.DataSource=a.get_data("select id,lk||' '||tlk as lk,tlk from a_dmlk order by stt").Tables[0];

			c707.DisplayMember="TEN";
			c707.ValueMember="ID";
			c707.DataSource=a.get_data("select * from a_dmcapphat where sudung=1 order by stt").Tables[0];

			c709.DisplayMember="HOTEN";
			c709.ValueMember="ID";
			c709.DataSource=a.get_data("select * from a_dlogin order by id").Tables[0];

			c710.DisplayMember="TEN";
			c710.ValueMember="ID";
			c710.DataSource=a.get_data("select * from a_dmnhombc order by stt").Tables[0];

            //c712.DisplayMember = "TEN";
            //c712.ValueMember = "ID";
            //c712.DataSource = a.get_data("select * from a_dmkhoanmuc where sudung=1 order by loaikm,stt").Tables[0];
            c712.DisplayMember = "TTK";
            c712.ValueMember = "ID";
            c712.DataSource = a.get_data("select * from a_dmtk where substr(stk,1,4)='3113' and sudung=1 and c=1 order by stk").Tables[0];
	

			c800.DisplayMember="TEN";
			c800.ValueMember="ID";
			c800.DataSource=a.get_data("select * from a_hoatdong where sudung=1 order by stt").Tables[0];

			c801.DisplayMember="TEN";
			c801.ValueMember="ID";
			c801.DataSource=a.get_data("select * from a_bcnghang where chucnang in (4) order by stt").Tables[0];

			c802.DisplayMember="TEN";
			c802.ValueMember="ID";
			c802.DataSource=a.get_data("select * from a_dmchuong where sudung=1 order by stt").Tables[0];

			c803.DisplayMember="TEN";
			c803.ValueMember="ID";
			c803.DataSource=a.get_data("select * from a_nghiepvu where sudung=1 order by stt").Tables[0];

			c813.DisplayMember="TTK";
			c813.ValueMember="ID";
			c813.DataSource=a.get_data("select id,stk||' '||ttk as ttk from a_dmtk where stk like '3371%' and c=1 order by stk").Tables[0];
	
			c805.DisplayMember="TEN";
			c805.ValueMember="ID";
			c805.DataSource=a.get_data("select * from a_dmloaibk where sudung=1 order by stt").Tables[0];
            
			c806.DisplayMember="LK";
			c806.ValueMember="ID";
			c806.DataSource=a.get_data("select id,lk||' '||tlk as lk,tlk from a_dmlk order by stt").Tables[0];

			c807.DisplayMember="TEN";
			c807.ValueMember="ID";
			c807.DataSource=a.get_data("select * from a_dmcapphat where sudung=1 order by stt").Tables[0];

			c809.DisplayMember="HOTEN";
			c809.ValueMember="ID";
			c809.DataSource=a.get_data("select * from a_dlogin order by id").Tables[0];

			c810.DisplayMember="TEN";
			c810.ValueMember="ID";
			c810.DataSource=a.get_data("select * from a_dmnhombc order by stt").Tables[0];

			c812.DisplayMember="TEN";
			c812.ValueMember="ID";
			c812.DataSource=a.get_data("select * from a_dmkhoanmuc where sudung=1 order by loaikm,stt").Tables[0];

			c900.DisplayMember="TEN";
			c900.ValueMember="ID";
			c900.DataSource=a.get_data("select * from a_hoatdong where sudung=1 order by stt").Tables[0];

			c901.DisplayMember="TEN";
			c901.ValueMember="ID";
			c901.DataSource=a.get_data("select * from a_bcnghang where chucnang in (1) order by stt").Tables[0];

			c902.DisplayMember="TEN";
			c902.ValueMember="ID";
			c902.DataSource=a.get_data("select * from a_dmchuong where sudung=1 order by stt").Tables[0];

			c903.DisplayMember="TEN";
			c903.ValueMember="ID";
			c903.DataSource=a.get_data("select * from a_nghiepvu where sudung=1 order by stt").Tables[0];

			c904.DisplayMember="TEN";
			c904.ValueMember="ID";
			c904.DataSource=a.get_data("select * from a_dmtcnkp where sudung=1 order by stt").Tables[0];
	
			c905.DisplayMember="TEN";
			c905.ValueMember="ID";
			c905.DataSource=a.get_data("select * from a_dmloaibk where sudung=1 order by stt").Tables[0];
            
			c906.DisplayMember="LK";
			c906.ValueMember="ID";
			c906.DataSource=a.get_data("select id,lk||' '||tlk as lk,tlk from a_dmlk order by stt").Tables[0];

			c907.DisplayMember="TEN";
			c907.ValueMember="ID";
			c907.DataSource=a.get_data("select * from a_dmcapphat where sudung=1 order by stt").Tables[0];

			c909.DisplayMember="HOTEN";
			c909.ValueMember="ID";
			c909.DataSource=a.get_data("select * from a_dlogin order by id").Tables[0];

			c910.DisplayMember="TEN";
			c910.ValueMember="ID";
			c910.DataSource=a.get_data("select * from a_dmnhombc order by stt").Tables[0];

			c912.DisplayMember="TEN";
			c912.ValueMember="ID";
			c912.DataSource=a.get_data("select * from a_dmkhoanmuc where sudung=1 order by loaikm,stt").Tables[0];

		}

		private void frmThongso_Load(object sender, System.EventArgs e)
		{
			try
			{
				load_dm();
				init();
				load();
				dt=a.get_data("select id,hoten from a_dlogin order by id").Tables[0];
				dtvp=a.get_data("select id,hoten from a_dlogin order by id").Tables[0];
                dttk = a.get_data("select id,stk as tkco from a_dmtk where substr(stk,1,3)='331' and c=1 order by stk").Tables[0]; // 
				dttkvp=a.get_data("select id,stk as tkco from a_dmtk where substr(stk,1,3) in ('311','511') and c=1 order by stk").Tables[0];
				ds=a.get_data("select a.*,b.hoten from "+d.user+".d_dmkho a,a_dlogin b where a.useridkt=b.id(+) order by a.nhom,a.stt");
				AddGridTableStyle();
				dsvp=a.get_data("select a.*,b.hoten from "+v.user+".v_loaithutien a,a_dlogin b where a.userid=b.id(+) order by a.id");
				AddGridTableStyle1();
			}
			catch
		{}
		}

		private void upd()
		{
			a.upd_thongso(100,"Ngày bắt đầu",c100.Text);
			a.upd_thongso(101,"Mã đơn vị",c101.Text);
			a.upd_thongso(102,"Đơn vị",c102.Text);
			a.upd_thongso(103,"Cơ quan chủ quản",c103.Text);
			a.upd_thongso(104,"Địa chỉ",c104.Text);
			a.upd_thongso(105,"Phường/ Xã",c105.Text);
			a.upd_thongso(106,"Quận/ Huyện",c106.Text);
			a.upd_thongso(107,"Tỉnh/ Thành Phố",c107.Text);
			a.upd_thongso(108,"Điện thoại",c108.Text);
			a.upd_thongso(109,"Fax",c109.Text);
			a.upd_thongso(110,"Email",c110.Text);
			a.upd_thongso(111,"Web",c111.Text);
			a.upd_thongso(112,"Mã số thuế",c112.Text);
			a.upd_thongso(113,"Tài khoản",c113.Text);
		
			a.upd_thongso(200, "Tài khoản chờ phân bổ", c200.Text);
			a.upd_thongso(201, "TK nợ đầu vào thuế GTGT", c201.Text);
			a.upd_thongso(202, "TK có đầu ra thuế GTGT", c202.Text);
			a.upd_thongso(203, "Không nhập bảng kê chứng từ",(c203.Checked)?"1":"0");
			a.upd_thongso(204, "Số chứng từ tăng tự động",(c204.Checked)?"1":"0");
			if (c205.Checked) a.updKhoaso(mmyy,userid);
			else a.execute_data("delete from a_khoaso where mmyy='"+mmyy+"'");	
			a.upd_thongso(206, "tăng theo năm",(c206.Checked)?"1":"0");
	
			a.upd_thongso(300, "Cho phép xuất tồn âm",(c300.Checked)?"1":"0");
			a.upd_thongso(301, "Tài khoản chi phí chờ kết chuyển", c301.Text);
		
			a.upd_thongso(400, "Tài khoản tính giá thành", c400.Text);
			a.upd_thongso(401, "Tài khoản nguồn vật liệu chính", c401.Text);
			a.upd_thongso(402, "Tài khoản nợ giãm giá thành", c402.Text);
			a.upd_thongso(403, "Tài khoản có giãm giá thành", c403.Text);
			a.upd_thongso(404, "Tài khoản xuất bán trực tiếp", c404.Text);
		
			a.upd_thongso(500, "Phân bổ chi tiết tài sản cố định",(c500.Checked)?"1":"0");
			a.upd_thongso(501, "Cho phép ghi âm giá trị còn lại", c501.Text);
			a.upd_thongso(502, "Điều chỉnh khấu hao theo năm", c502.Text);
		
			a.upd_thongso(600, "Giám đốc", c600.Text);
			a.upd_thongso(601, "Kế toán trưởng", c601.Text);
			a.upd_thongso(602, "Kế toán tiền mặt", c602.Text);
			a.upd_thongso(603, "Kế toán ngân hàng", c603.Text);
			a.upd_thongso(604, "Kế toán vật tư", c604.Text);
			a.upd_thongso(605, "Kế toán hàng hóa", c605.Text);
			a.upd_thongso(606, "Kế toán tổng hợp", c606.Text);
			a.upd_thongso(607, "Thủ quỹ", c607.Text);

			a.upd_thongso(700,"Hoạt động",(c700.SelectedIndex!=-1)?c700.SelectedValue.ToString():"0");
			a.upd_thongso(701,"Loại",(c701.SelectedIndex!=-1)?c701.SelectedValue.ToString():"0");
			a.upd_thongso(702,"Chương",(c702.SelectedIndex!=-1)?c702.SelectedValue.ToString():"0");
			a.upd_thongso(703,"Nghiệp vụ",(c703.SelectedIndex!=-1)?c703.SelectedValue.ToString():"0");
			a.upd_thongso(704,"Nguồn kinh phí",(c704.SelectedIndex!=-1)?c704.SelectedValue.ToString():"0");
			a.upd_thongso(705,"Loại bảng kê",(c705.SelectedIndex!=-1)?c705.SelectedValue.ToString():"0");
			a.upd_thongso(706,"Loại khoản",(c706.SelectedIndex!=-1)?c706.SelectedValue.ToString():"0");
			a.upd_thongso(707,"Cấp phát",(c707.SelectedIndex!=-1)?c707.SelectedValue.ToString():"0");
			a.upd_thongso(708,"Nội dung",c708.Text);
			a.upd_thongso(709,"Userid",(c709.SelectedIndex!=-1)?c709.SelectedValue.ToString():"0");
			a.upd_thongso(710,"Nhóm",(c710.SelectedIndex!=-1)?c710.SelectedValue.ToString():"0");
			a.upd_thongso(711,"Số tài khoản hàng năm",(c711.Checked)?"1":"0");
			a.upd_thongso(712,"Khoản mục nợ",(c712.SelectedIndex!=-1)?c712.SelectedValue.ToString():"0");

			a.upd_thongso(800,"Hoạt động",(c800.SelectedIndex!=-1)?c800.SelectedValue.ToString():"0");
			a.upd_thongso(801,"Loại",(c801.SelectedIndex!=-1)?c801.SelectedValue.ToString():"0");
			a.upd_thongso(802,"Chương",(c802.SelectedIndex!=-1)?c802.SelectedValue.ToString():"0");
			a.upd_thongso(803,"Nghiệp vụ",(c803.SelectedIndex!=-1)?c803.SelectedValue.ToString():"0");
			a.upd_thongso(813,"Tài khoản nợ năm trước",(c813.SelectedIndex!=-1)?c813.SelectedValue.ToString():"0");
			a.upd_thongso(805,"Loại bảng kê",(c805.SelectedIndex!=-1)?c805.SelectedValue.ToString():"0");
			a.upd_thongso(806,"Loại khoản",(c806.SelectedIndex!=-1)?c806.SelectedValue.ToString():"0");
			a.upd_thongso(807,"Cấp phát",(c807.SelectedIndex!=-1)?c807.SelectedValue.ToString():"0");
			a.upd_thongso(808,"Nội dung",c808.Text);
			a.upd_thongso(809,"Userid",(c809.SelectedIndex!=-1)?c809.SelectedValue.ToString():"0");
			a.upd_thongso(810,"Nhóm",(c810.SelectedIndex!=-1)?c810.SelectedValue.ToString():"0");
			a.upd_thongso(811,"Số tài khoản hàng năm",(c811.Checked)?"1":"0");
			a.upd_thongso(812,"Khoản mục nợ",(c812.SelectedIndex!=-1)?c812.SelectedValue.ToString():"0");

			a.upd_thongso(900,"Hoạt động",(c900.SelectedIndex!=-1)?c900.SelectedValue.ToString():"0");
			a.upd_thongso(901,"Loại",(c901.SelectedIndex!=-1)?c901.SelectedValue.ToString():"0");
			a.upd_thongso(902,"Chương",(c902.SelectedIndex!=-1)?c902.SelectedValue.ToString():"0");
			a.upd_thongso(903,"Nghiệp vụ",(c903.SelectedIndex!=-1)?c903.SelectedValue.ToString():"0");
			a.upd_thongso(904,"Nguồn kinh phí",(c904.SelectedIndex!=-1)?c904.SelectedValue.ToString():"0");
			//a.upd_thongso(913,"Tài khoản nợ năm trước",(c913.SelectedIndex!=-1)?c913.SelectedValue.ToString():"0");
			a.upd_thongso(905,"Loại bảng kê",(c905.SelectedIndex!=-1)?c905.SelectedValue.ToString():"0");
			a.upd_thongso(906,"Loại khoản",(c906.SelectedIndex!=-1)?c906.SelectedValue.ToString():"0");
			a.upd_thongso(907,"Cấp phát",(c907.SelectedIndex!=-1)?c907.SelectedValue.ToString():"0");
			a.upd_thongso(908,"Nội dung",c908.Text);
			a.upd_thongso(909,"Userid",(c909.SelectedIndex!=-1)?c909.SelectedValue.ToString():"0");
			a.upd_thongso(910,"Nhóm",(c910.SelectedIndex!=-1)?c910.SelectedValue.ToString():"0");
			//a.upd_thongso(911,"Số tài khoản hàng năm",(c911.Checked)?"1":"0");
			a.upd_thongso(912,"Khoản mục nợ",(c912.SelectedIndex!=-1)?c912.SelectedValue.ToString():"0");

			DataRow r1;
			int uid=0;
			foreach(DataRow r in ds.Tables[0].Rows)
			{
				r1=a.getrowbyid(dt,"hoten='"+r["hoten"].ToString()+"'");
				if (r1!=null) uid=int.Parse(r1["id"].ToString());
				a.execute_data("update "+d.user+".d_dmkho set tkco='"+r["tkco"].ToString()+"',useridkt="+uid+" where id="+long.Parse(r["id"].ToString()));
			}

            //foreach(DataRow r in dsvp.Tables[0].Rows)
            //{
            //    r1=a.getrowbyid(dt,"hoten='"+r["hoten"].ToString()+"'");
            //    if (r1!=null) uid=int.Parse(r1["id"].ToString());
            //    a.execute_data("update v_loaithutien set tkco='"+r["tkco"].ToString()+"',userid="+uid+" where id="+long.Parse(r["id"].ToString()));
            //}
		}

		private void butLuu_Click(object sender, System.EventArgs e)
		{
			upd();
			butKetthuc.Focus();
		}

		private void butKetthuc_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}	

		private void AddGridTableStyle()
		{
			int IntAvgCharWidth;
			ts = new DataGridTableStyle();
			IntAvgCharWidth=(int)(System.Drawing.Graphics.FromHwnd(this.Handle).MeasureString("ABCDEFGHIJKLMNOPQRSTUVWXYZ",this.Font).Width/26);
			objStudentCM = (System.Windows.Forms.CurrencyManager)this.BindingContext[ds.Tables[0]];
			ts.MappingName = ds.Tables[0].TableName;

			ts.AlternatingBackColor = Color.Beige;
			ts.BackColor = Color.GhostWhite;
			ts.ForeColor = Color.MidnightBlue;
			ts.GridLineColor = Color.RoyalBlue;
			ts.HeaderBackColor = Color.MidnightBlue;
			ts.HeaderForeColor = Color.Lavender;
			ts.SelectionBackColor = Color.Teal;
			ts.SelectionForeColor = Color.PaleGreen;
			ts.ReadOnly=false;

			ts.GridColumnStyles.Add(new DataGridTextBoxColumn(objStudentCM .GetItemProperties()["ten"]));
			ts.GridColumnStyles[0].MappingName = "ten";
			ts.GridColumnStyles[0].HeaderText = "Kho";
			ts.GridColumnStyles[0].Width=120;
			ts.ReadOnly=true;
			ts.GridColumnStyles[0].Alignment = HorizontalAlignment.Left;
			ts.GridColumnStyles[0].NullText = string.Empty;

			ts.GridColumnStyles.Add(new DataGridComboBoxColumn(dttk,1,1));
			ts.GridColumnStyles[1].MappingName = "tkco";
			ts.GridColumnStyles[1].HeaderText = "TK Có";
			ts.GridColumnStyles[1].Width=100;
			ts.GridColumnStyles[1].Alignment = HorizontalAlignment.Left;
			ts.GridColumnStyles[1].NullText = string.Empty;			
			dataGrid1.CaptionText = string.Empty;

			ts.GridColumnStyles.Add(new DataGridComboBoxColumn(dt,1,1));
			ts.GridColumnStyles[2].MappingName = "hoten";
			ts.GridColumnStyles[2].HeaderText = "Người dùng";
			ts.GridColumnStyles[2].Width=100;
			ts.GridColumnStyles[2].Alignment = HorizontalAlignment.Left;
			ts.GridColumnStyles[2].NullText = string.Empty;			
			dataGrid1.CaptionText = string.Empty;

			dataGrid1.DataSource = ds;
			dataGrid1.DataMember = ds.Tables[0].TableName;
			dataGrid1.TableStyles.Add(ts);
		}

		private void AddGridTableStyle1()
		{
			int IntAvgCharWidth;
			ts = new DataGridTableStyle();
			IntAvgCharWidth=(int)(System.Drawing.Graphics.FromHwnd(this.Handle).MeasureString("ABCDEFGHIJKLMNOPQRSTUVWXYZ",this.Font).Width/26);
			objStudentCM = (System.Windows.Forms.CurrencyManager)this.BindingContext[dsvp.Tables[0]];
			ts.MappingName = dsvp.Tables[0].TableName;

			ts.AlternatingBackColor = Color.Beige;
			ts.BackColor = Color.GhostWhite;
			ts.ForeColor = Color.MidnightBlue;
			ts.GridLineColor = Color.RoyalBlue;
			ts.HeaderBackColor = Color.MidnightBlue;
			ts.HeaderForeColor = Color.Lavender;
			ts.SelectionBackColor = Color.Teal;
			ts.SelectionForeColor = Color.PaleGreen;
			ts.ReadOnly=false;

			ts.GridColumnStyles.Add(new DataGridTextBoxColumn(objStudentCM .GetItemProperties()["ten"]));
			ts.GridColumnStyles[0].MappingName = "ten";
			ts.GridColumnStyles[0].HeaderText = "Nội dung";
			ts.GridColumnStyles[0].Width=100;
			ts.ReadOnly=true;
			ts.GridColumnStyles[0].Alignment = HorizontalAlignment.Left;
			ts.GridColumnStyles[0].NullText = string.Empty;

			ts.GridColumnStyles.Add(new DataGridComboBoxColumn(dttkvp,1,1));
			ts.GridColumnStyles[1].MappingName = "tkco";
			ts.GridColumnStyles[1].HeaderText = "TK Có";
			ts.GridColumnStyles[1].Width=120;
			ts.GridColumnStyles[1].Alignment = HorizontalAlignment.Left;
			ts.GridColumnStyles[1].NullText = string.Empty;			
			dataGrid1.CaptionText = string.Empty;

			ts.GridColumnStyles.Add(new DataGridComboBoxColumn(dtvp,1,1));
			ts.GridColumnStyles[2].MappingName = "hoten";
			ts.GridColumnStyles[2].HeaderText = "Người dùng";
			ts.GridColumnStyles[2].Width=100;
			ts.GridColumnStyles[2].Alignment = HorizontalAlignment.Left;
			ts.GridColumnStyles[2].NullText = string.Empty;			
			dataGrid1.CaptionText = string.Empty;

			dataGrid2.DataSource = dsvp;
			dataGrid2.DataMember = dsvp.Tables[0].TableName;
			dataGrid2.TableStyles.Add(ts);
		}

		private void c204_CheckedChanged(object sender, System.EventArgs e)
		{
			if (this.ActiveControl==c204) c206.Enabled=c204.Checked;
		}

		private void c811_CheckedChanged(object sender, System.EventArgs e)
		{
			if (this.ActiveControl==c811) c813.Enabled=c811.Checked;
		}
	}
}

